-
Notifications
You must be signed in to change notification settings - Fork 599
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
Using opentelemetry-instrument breaks Sentry SDK #894
Comments
Looks like an issue with Falcon. Which version of Falcon are you using? Please share output of |
aiocontextvars==0.2.2 |
I should mention that the application in question doesn't use Falcon, there is a second application that runs on the same instance that does though, and that is executed using |
We wrap the Falcon API class into a partial function so when it is initialized, it receives some default params. This does not break the public Falcon API as it remains a callable but it breaks Sentry because Sentry also seems to patch Falcon and assumes certain knowledge about Falcon internals. I think we can change our implementation so instead of using a partial we use an actual class and pass in the kwargs some other way. |
As a side note, using a virtual environment (which is the fix we are going for in the interim) should solve this problem as if you are using falcon you would likely be running your application via uwsgi which seems to not suffer this issue |
Would it be possible for you to apply these changes to your local copy of https://github.com/open-telemetry/opentelemetry-python-contrib/pull/895/files |
It's changed to a new error:
A similar error message is occuring now in the uwsgi app now though:
|
Yes, of course. I made a silly mistake just before my last push. Fixed now. Please test again if possible. Thanks! |
@owais seems to be working |
Describe your environment
** OTEL_SERVICE_NAME=testthing
** SENTRY_URL=
Steps to reproduce
Using the below proof of concept python script:
When the script is executed as
python3 proof.py
the output is:Though when executing
opentelemetry-instrument python3 proof.py
the result is:What is the expected behavior?
Ideally sentry should execute without errors and provide the following response from the sample script:
What is the actual behavior?
Recieved the error:
The text was updated successfully, but these errors were encountered: