-
Notifications
You must be signed in to change notification settings - Fork 631
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 instrumentor import failure #1182
Comments
Can someone have a look on this one? 🙏🏼 |
This looks like a regression introduced in #1106 but I wonder how tests are passing? |
@talboren I am having trouble reproducing this, please provide the output of |
pip freeze:
the code is basically just this: python version:
|
I'm seeing what appears to be the same exception on python 3.10.5 and this aiofiles==0.7.0 |
I solved this by moving forward to 1.12.0rc2 for the various opentelemetry packages. Everything seems to work fine with that version. |
Thank you so much, that seems to have fixed the problem momentarily. Still very unfortunate that this happened |
@ocelotl doesn't make sense to me that a release candidate is the solution - shouldn't it be solved somehow? |
If I'm understanding what's going on correctly it is actually a versioning problem. opentelemetry-instrumentation-fastapi==0.32b0 assumes that Getter is generic but in opentelemetry-sdk==1.11.1 it actually isn't yet, that doesn't get added until 1.12. So maybe there's actually a problem with version bounds somewhere that lead us both to have that broken combination installed. |
There was a problem with version synchronization b/w core and contrib. This shouldn't be a problem with the latest stable release of the core reop. Please upgrade to the latest version. Re-open if the issue still exists. |
Describe your environment
Python3.7
FastAPI
Opentelemtry v0.32b0
Steps to reproduce
When importing FastAPIInstrumentor
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
The exception below is being thrown
What is the actual behavior?
Exception is being thrown when importing FastAPI Instrumentor
Exception
The text was updated successfully, but these errors were encountered: