diff --git a/code/UI/OpenAPI/python-flask-server/KG2/openapi_server/__main__.py b/code/UI/OpenAPI/python-flask-server/KG2/openapi_server/__main__.py index a3cb8c1c1..1af501af0 100644 --- a/code/UI/OpenAPI/python-flask-server/KG2/openapi_server/__main__.py +++ b/code/UI/OpenAPI/python-flask-server/KG2/openapi_server/__main__.py @@ -57,7 +57,7 @@ def instrument(app, host, port): ) # trace.get_tracer_provider().get_tracer(__name__) tracer_provider = trace.get_tracer(__name__) - FlaskInstrumentor().instrument_app(app=app.app) + FlaskInstrumentor().instrument_app(app=app.app, tracer_provider=trace) RequestsInstrumentor().instrument() AioHttpClientInstrumentor().instrument() diff --git a/code/UI/OpenAPI/python-flask-server/openapi_server/__main__.py b/code/UI/OpenAPI/python-flask-server/openapi_server/__main__.py index 8abdc38ba..5677ea76a 100644 --- a/code/UI/OpenAPI/python-flask-server/openapi_server/__main__.py +++ b/code/UI/OpenAPI/python-flask-server/openapi_server/__main__.py @@ -59,7 +59,7 @@ def instrument(app, host, port): # tracer_provider.get_tracer(__name__) tracer_provider = trace.get_tracer(__name__) - FlaskInstrumentor().instrument_app(app=app.app) + FlaskInstrumentor().instrument_app(app=app.app, tracer_provider=trace) RequestsInstrumentor().instrument() AioHttpClientInstrumentor().instrument()