Debounce frequent errors #6242
-
Just like in Sentry-Unity where we have the Event-Debouncing feature (https://docs.sentry.io/platforms/unity/configuration/event-debouncing/) - do we have one for the java-script environment too ? Is there such a facility available where within given time interval, say 30 seconds, the same error won't be sent ?? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We have event deduping in JavaScript that is turned on by default using the If you want debouncing, I recommend using the dedupe logic and applying a |
Beta Was this translation helpful? Give feedback.
We have event deduping in JavaScript that is turned on by default using the
Dedupe
integration: https://docs.sentry.io/platforms/javascript/guides/gatsby/configuration/integrations/default/#dedupe. This does not have a timelimit though, but instead works by comparing events to each other.If you want debouncing, I recommend using the dedupe logic and applying a
setTimeout
inbeforeSend
:sentry-javascript/packages/integrations/src/dedupe.ts
Line 49 in 072ce5f