diff --git a/presidio/server/__main__.py b/presidio/server/__main__.py index 9c618012..7135864d 100644 --- a/presidio/server/__main__.py +++ b/presidio/server/__main__.py @@ -9,8 +9,8 @@ from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor -instrumentor = FlaskInstrumentor() -instrumentor.instrument() +# instrumentor = FlaskInstrumentor() +# instrumentor.instrument() from .server import Server @@ -33,7 +33,7 @@ trace.set_tracer_provider(provider) server = Server() - instrumentor.instrument_app( + FlaskInstrumentor().instrument_app( server.app, excluded_urls="/health", )