-
Notifications
You must be signed in to change notification settings - Fork 642
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
FastApi Opentelemetry throwing concurrent.futures._base.CancelledError #467
Comments
hi @nilansaha did u use auto-intrumentation with FastAPI? Did it work? If yes, could you please share your packages version? |
This is my requirements.txt. Let me know if you can't get it to work. Happy to help. Its so interesting that something like opentelemetry don't update their docs properly and half the things that seem to work does not work. It was painful to make it work
|
Hi @nilansaha I checked with the same required packages (opentelemetry), but it didnt show up my service and my apis in Jaeger dropdown-list. Maybe you can check my code here.
Could you please help? |
@thaodt Please share your dockerfile as well |
https://github.com/cdvv7788/fastapi_instrumentation_bug I created this repository to reproduce the bug. |
This issue was marked stale due to lack of activity. It will be closed in 30 days. |
@nilansaha @thaodt This issue is still active. Any ideas to get it solved? |
I think CancelledError exception is a bug in asyncio module of python 3.7. If you using higher version than 3.7 CancelledError problem will be solved. This bug is fix in python 3.8 with this commit, where they use another try to deal with the CancelledError(line 191 of locks.py). I have the same bug when using fastAPI which has another middleware with opentelemetry manual instrumentation in python 3.7.13. But when I change to python 3.8.13 and python 3.9.12, everything is fine. |
For Kubernetes I have implemented healthchecks in FastAPI like this
However, opentelemetry always gives errors in these spans. Not sure why. This is the error I get in Datadog Tracing
And this happens for all the endpoints. Not sure whats up. Any help is appreciated.
The text was updated successfully, but these errors were encountered: