Skip to content

Commit

Permalink
fixup! feat(presidio): instrument and export otel traces
Browse files Browse the repository at this point in the history
  • Loading branch information
qlonik committed Apr 29, 2024
1 parent 65e6241 commit b5675bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions presidio/server/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -33,7 +33,7 @@
trace.set_tracer_provider(provider)

server = Server()
instrumentor.instrument_app(
FlaskInstrumentor().instrument_app(
server.app,
excluded_urls="/health",
)
Expand Down

0 comments on commit b5675bc

Please sign in to comment.