Skip to content

Commit 89ca760

Browse files
committed
Exclude health endpoints from OTEL
1 parent 762bf57 commit 89ca760

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cohd/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
deployment_env = app.config.get('DEPLOYMENT_ENV', 'dev')
6060
if deployment_env[:4] == 'ITRB':
6161
jaeger_host = 'jaeger-otel-agent.sri'
62-
# jaeger_exporter = OTLPSpanExporter(endpoint=jaeger_host)
6362
jaeger_exporter = JaegerExporter(
6463
agent_host_name=jaeger_host,
6564
agent_port=6831,
@@ -73,5 +72,6 @@
7372
)
7473
otel_excluded_urls = 'health,api/health'
7574
tracer = trace.get_tracer(__name__)
76-
FlaskInstrumentor().instrument_app(app)
75+
FlaskInstrumentor().instrument_app(app,
76+
excluded_urls=otel_excluded_urls)
7777
logging.info('Finished instrumenting app for OTEL')

0 commit comments

Comments
 (0)