From b5675bcdd87735147ba9a8b0d40792367470f4f9 Mon Sep 17 00:00:00 2001 From: Nikita Volodin Date: Mon, 29 Apr 2024 18:06:25 -0400 Subject: [PATCH] fixup! feat(presidio): instrument and export otel traces --- presidio/server/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", )