Dedupe JS events to prevent 1000s repeated hitting Sentry

This commit is contained in:
Qstick 2020-01-12 14:59:14 -05:00
parent 1fab973c67
commit dec0e3eec3
1 changed files with 4 additions and 1 deletions

View File

@ -89,7 +89,10 @@ export default function createSentryMiddleware() {
release, release,
sendDefaultPii: true, sendDefaultPii: true,
beforeSend: cleanseData, beforeSend: cleanseData,
integrations: [new Integrations.RewriteFrames({ iteratee: stripUrlBase })] integrations: [
new Integrations.RewriteFrames({ iteratee: stripUrlBase }),
new Integrations.Dedupe()
]
}); });
sentry.configureScope((scope) => { sentry.configureScope((scope) => {