From aab70cfc0090692b8eb9946b472d3d0ec5923452 Mon Sep 17 00:00:00 2001 From: ivansantiagojr Date: Sun, 21 Jun 2026 00:15:13 -0300 Subject: [PATCH] Set distributed tracing to False The logfire dashboard was warning us: 'Found propagated trace context'. This change solves this problem. Check https://pydantic.dev/docs/logfire/instrument/distributed-tracing/#unintentional-distributed-tracing. --- src/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index cba520c..3160937 100644 --- a/src/main.py +++ b/src/main.py @@ -14,7 +14,9 @@ app.mount('/static', StaticFiles(directory='src/static'), name='static') logfire.configure( - token=settings.LOGFIRE_TOKEN, send_to_logfire='if-token-present' + token=settings.LOGFIRE_TOKEN, + send_to_logfire='if-token-present', + distributed_tracing=False, ) logfire.instrument_fastapi(app, capture_headers=True) logfire.instrument_system_metrics()