mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-01 17:34:38 +08:00
FlaskInstrumentation
doesn't exist (#2070)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
This commit is contained in:
@ -141,7 +141,7 @@ For example,
|
|||||||
if span and span.is_recording():
|
if span and span.is_recording():
|
||||||
span.set_attribute("custom_user_attribute_from_response_hook", "some-value")
|
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
|
Flask Request object reference: https://flask.palletsprojects.com/en/2.1.x/api/#flask.Request
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user