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