From d12e081ece3dc80ed6c116fd8fa5b0d5f715c276 Mon Sep 17 00:00:00 2001 From: Jean Jordaan Date: Tue, 21 Nov 2023 23:44:10 +0700 Subject: [PATCH] `FlaskInstrumentation` doesn't exist --- .../src/opentelemetry/instrumentation/flask/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py b/instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py index 18b4713eaf..5f16b14727 100644 --- a/instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py @@ -141,7 +141,7 @@ def response_hook(span: Span, status: str, response_headers: List): if span and span.is_recording(): span.set_attribute("custom_user_attribute_from_response_hook", "some-value") - FlaskInstrumentation().instrument(request_hook=request_hook, response_hook=response_hook) + FlaskInstrumentor().instrument(request_hook=request_hook, response_hook=response_hook) Flask Request object reference: https://flask.palletsprojects.com/en/2.1.x/api/#flask.Request