Skip to content

Commit dd15d32

Browse files
fix(scope): Clear last_event_id on scope clear
Co-authored-by: Adam Johnson <[email protected]>
1 parent 239cca2 commit dd15d32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/scope.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ def __init__(self, ty=None, client=None):
208208
incoming_trace_information = self._load_trace_data_from_env()
209209
self.generate_propagation_context(incoming_data=incoming_trace_information)
210210

211-
# self._last_event_id is only applicable to isolation scopes
212-
self._last_event_id = None # type: Optional[str]
213-
214211
def __copy__(self):
215212
# type: () -> Scope
216213
"""
@@ -680,6 +677,9 @@ def clear(self):
680677

681678
self._propagation_context = None
682679

680+
# self._last_event_id is only applicable to isolation scopes
681+
self._last_event_id = None # type: Optional[str]
682+
683683
@_attr_setter
684684
def level(self, value):
685685
# type: (LogLevelStr) -> None

0 commit comments

Comments
 (0)