Skip to content

Commit 491955b

Browse files
fix: exclude /health endpoint from logfire traces
1 parent 1e0a2eb commit 491955b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/policyengine_api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def lifespan(app: FastAPI):
7070

7171
# Instrument FastAPI with Logfire (only if configured)
7272
if _logfire_enabled:
73-
logfire.instrument_fastapi(app)
73+
logfire.instrument_fastapi(app, excluded_urls=["/health"])
7474

7575
app.include_router(api_router)
7676

0 commit comments

Comments
 (0)