Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmontagu committed Dec 13, 2024
1 parent fb7789c commit 17cfbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logfire/_internal/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1921,7 +1921,7 @@ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseExceptio

if self._span is not None:
span_context = self._span.get_span_context()
del OPEN_LOGFIRE_SPANS_BY_ID[(span_context.trace_id, span_context.span_id)]
OPEN_LOGFIRE_SPANS_BY_ID.pop((span_context.trace_id, span_context.span_id), None)
OPEN_SPANS.remove(self)

context_api.detach(self._token)
Expand Down

0 comments on commit 17cfbc7

Please sign in to comment.