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 0dd657848..a3cb8c1c1 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 @@ -55,7 +55,8 @@ def instrument(app, host, port): ) ) ) - trace.get_tracer_provider().get_tracer(__name__) + # trace.get_tracer_provider().get_tracer(__name__) + tracer_provider = trace.get_tracer(__name__) FlaskInstrumentor().instrument_app(app=app.app) 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 f53d7d02d..8abdc38ba 100644 --- a/code/UI/OpenAPI/python-flask-server/openapi_server/__main__.py +++ b/code/UI/OpenAPI/python-flask-server/openapi_server/__main__.py @@ -55,8 +55,10 @@ def instrument(app, host, port): ) ) ) - tracer_provider = trace.get_tracer_provider() - tracer_provider.get_tracer(__name__) + # tracer_provider = trace.get_tracer_provider() + # tracer_provider.get_tracer(__name__) + tracer_provider = trace.get_tracer(__name__) + FlaskInstrumentor().instrument_app(app=app.app) RequestsInstrumentor().instrument() AioHttpClientInstrumentor().instrument()