From 7e244611f0fa3c0740f78a8e667b11eb177be0a8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 12 Jan 2020 14:59:14 -0500 Subject: [PATCH] Dedupe JS events to prevent 1000s repeated hitting Sentry --- frontend/src/Store/Middleware/createSentryMiddleware.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/Store/Middleware/createSentryMiddleware.js b/frontend/src/Store/Middleware/createSentryMiddleware.js index 987a4626e..24a51d1a4 100644 --- a/frontend/src/Store/Middleware/createSentryMiddleware.js +++ b/frontend/src/Store/Middleware/createSentryMiddleware.js @@ -89,7 +89,10 @@ export default function createSentryMiddleware() { release, sendDefaultPii: true, beforeSend: cleanseData, - integrations: [new Integrations.RewriteFrames({ iteratee: stripUrlBase })] + integrations: [ + new Integrations.RewriteFrames({ iteratee: stripUrlBase }), + new Integrations.Dedupe() + ] }); sentry.configureScope((scope) => {