Skip to content

Commit d7cc194

Browse files
jeanshalevr
andauthored
FlaskInstrumentation doesn't exist (#2070)
Co-authored-by: Shalev Roda <[email protected]>
1 parent 772063c commit d7cc194

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask

1 file changed

+1
-1
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def response_hook(span: Span, status: str, response_headers: List):
141141
if span and span.is_recording():
142142
span.set_attribute("custom_user_attribute_from_response_hook", "some-value")
143143
144-
FlaskInstrumentation().instrument(request_hook=request_hook, response_hook=response_hook)
144+
FlaskInstrumentor().instrument(request_hook=request_hook, response_hook=response_hook)
145145
146146
Flask Request object reference: https://flask.palletsprojects.com/en/2.1.x/api/#flask.Request
147147

0 commit comments

Comments
 (0)