File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -606,6 +606,10 @@ def _prepare_event(
606606 self .transport .record_lost_event (
607607 "before_send" , data_category = "error"
608608 )
609+ from sentry_sdk .integrations .dedupe import DedupeIntegration
610+
611+ DedupeIntegration .reset_last_seen ()
612+
609613 event = new_event
610614
611615 before_send_transaction = self .options ["before_send_transaction" ]
Original file line number Diff line number Diff line change @@ -40,3 +40,11 @@ def processor(event, hint):
4040 return None
4141 integration ._last_seen .set (exc )
4242 return event
43+
44+ @staticmethod
45+ def reset_last_seen ():
46+ integration = sentry_sdk .get_client ().get_integration (DedupeIntegration )
47+ if integration is None :
48+ return
49+
50+ integration ._last_seen .set (None )
You can’t perform that action at this time.
0 commit comments