Skip to content

Commit d4f7d56

Browse files
committed
Exclude App Insights URL Dependency
1 parent a0de60d commit d4f7d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/function/fastapp/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def setup_opentelemetry(app: FastAPI):
130130
# Create instrumenter
131131
FastAPIInstrumentor.instrument_app(
132132
app,
133-
excluded_urls=f"{settings.API_V1_STR}/health/heartbeat",
133+
excluded_urls=f".*.in.applicationinsights.azure.com/.*,{settings.API_V1_STR}/health/heartbeat",
134134
tracer_provider=tracer_provider,
135135
meter_provider=meter_provider,
136136
)

0 commit comments

Comments
 (0)