From fa53fdd62a49d792f3693c52e25ec8f4fa6f2450 Mon Sep 17 00:00:00 2001 From: Damien Degois Date: Mon, 6 Oct 2025 13:56:13 +0200 Subject: [PATCH] fix: remove forced tracing Signed-off-by: Damien Degois --- src/fastapi_structured_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastapi_structured_logging.py b/src/fastapi_structured_logging.py index 1686845..915092a 100644 --- a/src/fastapi_structured_logging.py +++ b/src/fastapi_structured_logging.py @@ -34,7 +34,7 @@ def _add_trace_info(_, __, event_dict: dict[str, Any]) -> dict[str, Any]: - if OTEL_AVAILABLE or True: + if OTEL_AVAILABLE: span = trace.get_current_span() # Initialize tracing if no valid span context exists