Skip to content

Debounce frequent errors #6242

Answered by AbhiPrasad
nrvikas asked this question in Q&A
Nov 21, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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 in beforeSend:

export function _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean {

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nrvikas
Comment options

Answer selected by nrvikas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants