From 189db0f4c8c2cc95d3ac41ce2c427c81f651cebc Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 11 Sep 2025 07:50:34 +0200 Subject: [PATCH] Add log message when DedupeIntegration is dropping an error --- sentry_sdk/integrations/dedupe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/dedupe.py b/sentry_sdk/integrations/dedupe.py index a115e35292..eab2764fcd 100644 --- a/sentry_sdk/integrations/dedupe.py +++ b/sentry_sdk/integrations/dedupe.py @@ -1,5 +1,5 @@ import sentry_sdk -from sentry_sdk.utils import ContextVar +from sentry_sdk.utils import ContextVar, logger from sentry_sdk.integrations import Integration from sentry_sdk.scope import add_global_event_processor @@ -37,7 +37,9 @@ def processor(event, hint): exc = exc_info[1] if integration._last_seen.get(None) is exc: + logger.info("DedupeIntegration dropped duplicated error event %s", exc) return None + integration._last_seen.set(exc) return event