-
Notifications
You must be signed in to change notification settings - Fork 98
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
NewRelic agent: Failed to extract source code context from callable #515
Comments
Hello! This is an issue in a new feature we've just added in this version. If you're seeing that log message, your application should be safely recovering from the issue and there shouldn't be any crashes related to it. (If there are, definitely let us know.) Could you tell us a bit about the callable this error message is referencing? We'd like to figure out what's not functioning as expected and get that data reporting. Specifically in the logs where you've redacted it to say: Is that piece of code a function, a functools.partial, a callable object, a classmethod, etc? If the log messages are bothering you and you'd like to temporarily disable the new feature you can use this setting to temporarily disable it. |
What we have is a class, a request handler, that is decorated with a function that returns a configured handler, with changed type. From the error message, it looks like the part that causes the failure in the agent is the decorator. Basically this part, see example code, specifically this:
Let's say you have:
and
And the error in the agent is for Hope this helps. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We have a fix coming for this! |
Description
I added newrelic apm to a tornado based application. The agent is outputting a lot of error messages:
newrelic.api.time_trace ERROR - Failed to extract source code context from callable <address.to.request.handler.here>. Report this issue to newrelic support.
Is this something in our code?
Expected Behavior
No error messages and expected to see transactions in the APM.
Steps to Reproduce
newrelic==7.10.0.175
newrelic-admin run-python path/to/code
Your Environment
Python 3.9.2
NewRelic 7.10.0.175
Tornado 6.1.0
The text was updated successfully, but these errors were encountered: