-
Notifications
You must be signed in to change notification settings - Fork 624
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
Allow instrumentation of newer FastAPI versions #602
Conversation
Since the introduction of the `_instruments` runtime checks in open-telemetry#475, the FastAPI instrumentation has stopped working for versions >= `0.59.0`. However the current test suite passes even for the latest released version at the moment (`0.67.0`). It seems this isn't related to a limitation in the instrumentation code, but actually because of it being created when `0.58` was the latest version: open-telemetry/opentelemetry-python@7bec76a.
d054d9a
to
e5b40b0
Compare
Gentle ping to some of the reviewers for the initial PR with FastAPI support, just to increase awareness and visibility, as it would be great to allow newer FastAPI versions in the next minor/patch version of the library! |
@adamantike |
|
Anything greater than 0.58 is no longer working. Without testing, pretty sure that anything less than 0.58 is not working either. The fastapi instrumentor only works for fastapi version 0.58.x now. |
They follow semver. Should pin to less than v1 like you propose. |
I assumed all newer version were working. Sorry about the confusion. We should pin to the specific known working versions only and open an issue to support newer unsupported versions. |
They do follow SemVer, according to https://fastapi.tiangolo.com/deployment/versions/. However, as FastAPI is still at pre-1.0, any new minor version could include breaking changes. I haven't found any issues when testing version |
@owais, is there any context or changes I can provide here, to move forward with this PR? |
@adamantike the CI was having multiple issues one after the other. Looks like we've sorted out most of the issues now. Thanks for your patience. |
Description
Since the introduction of the
_instruments
runtime checks in #475, the FastAPI instrumentation has stopped working for versions >=0.59.0
. However the current test suite passes even for the latest released version at the moment (0.67.0
).It seems this isn't related to a limitation in the instrumentation code, but actually because of it being created when
0.58
was the latest version: open-telemetry/opentelemetry-python@7bec76a.Type of change
How Has This Been Tested?
tox -e test-instrumentation-fastapi
, which now installs latest FastAPI version.Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.