From 56cfc71c9231385a73b86cdb0b5e886d24846de1 Mon Sep 17 00:00:00 2001 From: Kevin Vizhalil Date: Tue, 24 Sep 2024 11:03:37 -0400 Subject: [PATCH] Updating Trace Provider for Flask Instrumentor #2378 --- .../OpenAPI/python-flask-server/KG2/openapi_server/__main__.py | 2 +- code/UI/OpenAPI/python-flask-server/openapi_server/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 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 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()