diff --git a/packages/ragbits-core/src/ragbits/core/audit/base.py b/packages/ragbits-core/src/ragbits/core/audit/base.py index d0e9f7fd..b8f1a745 100644 --- a/packages/ragbits-core/src/ragbits/core/audit/base.py +++ b/packages/ragbits-core/src/ragbits/core/audit/base.py @@ -18,7 +18,8 @@ def __init__(self) -> None: Constructs a new TraceHandler instance. """ super().__init__() - self._spans = ContextVar[list[SpanT]]("_spans", default=[]) + self._spans = ContextVar[list[SpanT]]("_spans") + self._spans.set([]) @abstractmethod def start(self, name: str, inputs: dict, current_span: SpanT | None = None) -> SpanT: