From 1cc246a3d5eb47e7329cd3dd90cba66bdc95e5de Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Thu, 22 Jul 2021 00:18:36 -0300 Subject: [PATCH] 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: https://github.com/open-telemetry/opentelemetry-python/commit/7bec76a22032e498911d06b9e3dab4e33528d995. --- .../src/opentelemetry/instrumentation/fastapi/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/package.py b/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/package.py index 155ea85af3..cccaa51a8c 100644 --- a/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/package.py +++ b/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/package.py @@ -13,4 +13,4 @@ # limitations under the License. -_instruments = ("fastapi ~= 0.58.1",) +_instruments = ("fastapi ~= 0.58",)