Skip to content

Commit 3d66381

Browse files
committed
trying with an hash of the event stacktrace
1 parent 549fae8 commit 3d66381

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sentry_sdk/integrations/dedupe.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sentry_sdk
2-
from sentry_sdk.utils import ContextVar
2+
from sentry_sdk.utils import ContextVar, iter_event_stacktraces
33
from sentry_sdk.integrations import Integration
44
from sentry_sdk.scope import add_global_event_processor
55

@@ -64,13 +64,11 @@ def processor(event, hint):
6464
if exc_info is None:
6565
return event
6666

67-
exc = exc_info[1]
68-
exc_hash = DedupeIntegration._get_exception_hash(exc)
69-
70-
if integration._last_seen.get(None) == exc_hash:
67+
event_hash = hash(iter_event_stacktraces(event))
68+
if integration._last_seen.get(None) == event_hash:
7169
return None
7270

73-
integration._last_seen.set(exc_hash)
71+
integration._last_seen.set(event_hash)
7472
return event
7573

7674
@staticmethod

0 commit comments

Comments
 (0)