Skip to content

Commit a5ff931

Browse files
committed
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
1 parent 7da38b7 commit a5ff931

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,16 @@ Sentry.init({
3939
integrations: [],
4040
tracesSampleRate: 0.1,
4141
release: environment.LIVE_UPDATE_APP_VERSION,
42-
ignoreErrors: ['Non-Error exception captured', 'Non-Error promise rejection captured'],
42+
ignoreErrors: [
43+
'Non-Error exception captured',
44+
'Non-Error promise rejection captured',
45+
'unhandledError', // "title": "<unknown>"
46+
/Could not load "geocoder"/, // "title": "Error: Uncaught (in promise): Error: Could not load \"geocoder\".",
47+
/ChunkLoadError: Loading chunk \d+ failed/, // "title": "Error: Uncaught (in promise): Error: The Google Maps JavaScript API could not load.",
48+
/0 Unknown Error/, // "title": "<unknown>"
49+
/The Google Maps JavaScript API could not load/, // "title": "Error: Uncaught (in promise): Error: The Google Maps JavaScript API could not load."
50+
/kCLErrorDomain error/, // "title": "Error: Uncaught (in promise): Error: The operation couldn’t be completed. (kCLErrorDomain error 1.)",
51+
],
4352
beforeSend(event) {
4453
cleanHttpExceptionUrlsForSentryGrouping(event);
4554
return event;

0 commit comments

Comments
 (0)