From a5ff9318b84d3d9d3d79484b0e43dbbdf1cd7cdc Mon Sep 17 00:00:00 2001 From: Devendra Singh Rana <132900359+devendrafyle@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:09:44 +0530 Subject: [PATCH] fix: Added the regex for discarding the sentry issues (#3269) * fix: Added the regex for discarding the sentry issues * Added missed issue to ignore * Updated the errors * minor comments fix --- src/main.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index d93c099866..21c9e9a0d1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -39,7 +39,16 @@ Sentry.init({ integrations: [], tracesSampleRate: 0.1, release: environment.LIVE_UPDATE_APP_VERSION, - ignoreErrors: ['Non-Error exception captured', 'Non-Error promise rejection captured'], + ignoreErrors: [ + 'Non-Error exception captured', + 'Non-Error promise rejection captured', + 'unhandledError', // "title": "" + /Could not load "geocoder"/, // "title": "Error: Uncaught (in promise): Error: Could not load \"geocoder\".", + /ChunkLoadError: Loading chunk \d+ failed/, // "title": "Error: Uncaught (in promise): Error: The Google Maps JavaScript API could not load.", + /0 Unknown Error/, // "title": "" + /The Google Maps JavaScript API could not load/, // "title": "Error: Uncaught (in promise): Error: The Google Maps JavaScript API could not load." + /kCLErrorDomain error/, // "title": "Error: Uncaught (in promise): Error: The operation couldn’t be completed. (kCLErrorDomain error 1.)", + ], beforeSend(event) { cleanHttpExceptionUrlsForSentryGrouping(event); return event;