Skip to content

Commit

Permalink
fix: Added the regex for discarding the sentry issues (#3269)
Browse files Browse the repository at this point in the history
* fix: Added the regex for discarding the sentry issues

* Added missed issue to ignore

* Updated the errors

* minor comments fix
  • Loading branch information
devendrafyle committed Nov 19, 2024
1 parent 7da38b7 commit a5ff931
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<unknown>"
/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": "<unknown>"
/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;
Expand Down

0 comments on commit a5ff931

Please sign in to comment.