From 766374a44ac8f73ba72e892cf65cc6d5a17c1bec Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Mon, 30 Oct 2023 16:42:06 +0000 Subject: [PATCH] Prevented handled errors from being sent to Sentry (#18790) no refs As part of the reduce Sentry noise work we decided to temporarily prevent the submission of "handled" errors to Sentry. This is a temporary measure to reduce noise while we work on improving the quality of the error reporting / alerting --- ghost/admin/app/routes/application.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ghost/admin/app/routes/application.js b/ghost/admin/app/routes/application.js index c64ee52728..ff76c50dd6 100644 --- a/ghost/admin/app/routes/application.js +++ b/ghost/admin/app/routes/application.js @@ -185,6 +185,12 @@ export default Route.extend(ShortcutsRoute, { event.tags = event.tags || {}; event.tags.shown_to_user = event.tags.shown_to_user || false; event.tags.grammarly = !!document.querySelector('[data-gr-ext-installed]'); + + // Do not report "handled" errors to Sentry + if (event.tags.shown_to_user === true) { + return null; + } + return event; }, // TransitionAborted errors surface from normal application behaviour