From 00dc4b77795d950753356fe6b39664cff212cf47 Mon Sep 17 00:00:00 2001 From: Kevin Vizhalil Date: Mon, 23 Sep 2024 13:08:47 -0400 Subject: [PATCH] Fixing #2378 --- .../python-flask-server/KG2/openapi_server/__main__.py | 3 ++- .../OpenAPI/python-flask-server/openapi_server/__main__.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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()