We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 549fae8 commit 3d66381Copy full SHA for 3d66381
sentry_sdk/integrations/dedupe.py
@@ -1,5 +1,5 @@
1
import sentry_sdk
2
-from sentry_sdk.utils import ContextVar
+from sentry_sdk.utils import ContextVar, iter_event_stacktraces
3
from sentry_sdk.integrations import Integration
4
from sentry_sdk.scope import add_global_event_processor
5
@@ -64,13 +64,11 @@ def processor(event, hint):
64
if exc_info is None:
65
return event
66
67
- exc = exc_info[1]
68
- exc_hash = DedupeIntegration._get_exception_hash(exc)
69
-
70
- if integration._last_seen.get(None) == exc_hash:
+ event_hash = hash(iter_event_stacktraces(event))
+ if integration._last_seen.get(None) == event_hash:
71
return None
72
73
- integration._last_seen.set(exc_hash)
+ integration._last_seen.set(event_hash)
74
75
76
@staticmethod
0 commit comments