Allow instrumentation of newer FastAPI versions (#602)

* Allow instrumentation of newer FastAPI versions

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:
7bec76a220.

* Add changelog entry

Co-authored-by: Owais Lone <owais@users.noreply.github.com>
This commit is contained in:
Michael Manganiello
2021-08-24 19:04:26 -03:00
committed by GitHub
parent cc2529e2cd
commit 9c4eb69ab8
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `opentelemetry-instrumentation-asgi`, `opentelemetry-instrumentation-aiohttp-client`, `openetelemetry-instrumentation-fastapi`,
`opentelemetry-instrumentation-starlette`, `opentelemetry-instrumentation-urllib`, `opentelemetry-instrumentation-urllib3` Added `request_hook` and `response_hook` callbacks
([#576](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/576))
### Changed
- `opentelemetry-instrumentation-fastapi` Allow instrumentation of newer FastAPI versions.
([#602](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/602))
### Changed
- Enable explicit `excluded_urls` argument in `opentelemetry-instrumentation-flask`

View File

@ -13,4 +13,4 @@
# limitations under the License.
_instruments = ("fastapi ~= 0.58.1",)
_instruments = ("fastapi ~= 0.58",)