Skip to content

Commit

Permalink
fix(scope): Clear last_event_id on scope clear
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <me@adamj.eu>
  • Loading branch information
szokeasaurusrex and adamchainz committed Jun 6, 2024
1 parent 239cca2 commit dd15d32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sentry_sdk/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ def __init__(self, ty=None, client=None):
incoming_trace_information = self._load_trace_data_from_env()
self.generate_propagation_context(incoming_data=incoming_trace_information)

# self._last_event_id is only applicable to isolation scopes
self._last_event_id = None # type: Optional[str]

def __copy__(self):
# type: () -> Scope
"""
Expand Down Expand Up @@ -680,6 +677,9 @@ def clear(self):

self._propagation_context = None

# self._last_event_id is only applicable to isolation scopes
self._last_event_id = None # type: Optional[str]

@_attr_setter
def level(self, value):
# type: (LogLevelStr) -> None
Expand Down

0 comments on commit dd15d32

Please sign in to comment.