You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce
If instrument_app function is called for already instrumented object of _InstrumentedFastAPI then it will add Opentelemtery middleware again in the user_middleware list as is_instrumented_by_opentelemetry is not set in the __init__ function of _InstrumentedFastAPI.
What is the expected behavior?
If a fastapi app is already instrumented, i.e., it already has otel middleware in it then it shouldn't add another one.
What is the actual behavior?
Multiple otel middlewares are added.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
If
instrument_app
function is called for already instrumented object of_InstrumentedFastAPI
then it will add Opentelemtery middleware again in theuser_middleware
list asis_instrumented_by_opentelemetry
is not set in the__init__
function of_InstrumentedFastAPI
.What is the expected behavior?
If a fastapi app is already instrumented, i.e., it already has otel middleware in it then it shouldn't add another one.
What is the actual behavior?
Multiple otel middlewares are added.
The text was updated successfully, but these errors were encountered: