Skip to content

Commit 9c4eb69

Browse files
adamantikeowais
andauthored
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: open-telemetry/opentelemetry-python@7bec76a. * Add changelog entry Co-authored-by: Owais Lone <[email protected]>
1 parent cc2529e commit 9c4eb69

File tree

2 files changed

+6
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi

2 files changed

+6
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- `opentelemetry-instrumentation-asgi`, `opentelemetry-instrumentation-aiohttp-client`, `openetelemetry-instrumentation-fastapi`,
1414
`opentelemetry-instrumentation-starlette`, `opentelemetry-instrumentation-urllib`, `opentelemetry-instrumentation-urllib3` Added `request_hook` and `response_hook` callbacks
1515
([#576](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/576))
16+
17+
### Changed
18+
19+
- `opentelemetry-instrumentation-fastapi` Allow instrumentation of newer FastAPI versions.
20+
([#602](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/602))
1621

1722
### Changed
1823
- Enable explicit `excluded_urls` argument in `opentelemetry-instrumentation-flask`

instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/package.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515

16-
_instruments = ("fastapi ~= 0.58.1",)
16+
_instruments = ("fastapi ~= 0.58",)

0 commit comments

Comments
 (0)