diff --git a/sentry_sdk/scope.py b/sentry_sdk/scope.py index b695bffa3c..7e458e6d14 100644 --- a/sentry_sdk/scope.py +++ b/sentry_sdk/scope.py @@ -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 """ @@ -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