Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove optional import of newrelic #396

Closed
timmc-edx opened this issue Mar 12, 2024 · 4 comments
Closed

Remove optional import of newrelic #396

timmc-edx opened this issue Mar 12, 2024 · 4 comments

Comments

@timmc-edx
Copy link
Contributor

timmc-edx commented Mar 12, 2024

edx-django-utils.monitoring currently does a try-import of the newrelic package and then sets a flag if the import fails. This is a historical artifact that is no longer needed; we can just import newrelic.agent directly and drop any if newrelic: checks.

Archaeological notes:

@robrap
Copy link
Contributor

robrap commented Mar 13, 2024

Thanks for the history.

If a deployment had removed this dependency, even for an outdated reason, this would cause a backward-incompatibility. I don’t think we should change anything around this until this code is no longer run by default in the first place.

@timmc-edx
Copy link
Contributor Author

I think someone would have to go to some lengths to avoid having it installed, as it's currently pulled in automatically. I don't think it would be a big deal to do a major-version bump and remove the conditionals. But it's certainly not urgent; the main reason I filed this ticket was just to have a place to link to in a comment. :-)

@robrap
Copy link
Contributor

robrap commented Apr 29, 2024

@timmc-edx will look at this to determine whether to backlog or close.

@timmc-edx
Copy link
Contributor Author

I'm going to go ahead and close this for now. With the work in #397 we might be moving towards a situation where we can contain all of the New Relic references to a single plugin, and at that point it might be relatively straightforward to move newrelic from base to testing dependencies. But it's too early to say at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants