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 5df91f8d2b..3d2a100e92 100644 --- a/instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py @@ -116,7 +116,7 @@ def _start_response(status, response_headers, *args, **kwargs): status, ) if response_hook is not None: - response_hook(span, status, response_headers) + response_hook(span, status, response_headers) return start_response(status, response_headers, *args, **kwargs) return wsgi_app(wrapped_app_environ, _start_response)