Skip to content

Commit a174581

Browse files
committed
update _reset_thread_state
1 parent 2b37852 commit a174581

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sentry_sdk/_span_batcher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
self._active: "threading.local" = threading.local()
5252

5353
self._last_full_flush: float = time.monotonic() # drives time-based flushes
54-
self._flush_event: threading.Event = threading.Event()
54+
self._flush_event = threading.Event()
5555
self._pending_flush: set[str] = set() # buckets to be flushed
5656

5757
self._flusher: "Optional[threading.Thread]" = None
@@ -76,7 +76,9 @@ def _reset_thread_state(self) -> None:
7676
self._lock = threading.Lock()
7777
self._active = threading.local()
7878

79+
self._last_full_flush: float = time.monotonic()
7980
self._flush_event = threading.Event()
81+
self._pending_flush: set[str] = set()
8082

8183
self._flusher = None
8284
self._flusher_pid = None

0 commit comments

Comments
 (0)