-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Added the regex for discarding the sentry issues #3269
Conversation
WalkthroughThe changes in this pull request enhance the Sentry error handling configuration in the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)src/main.ts (1)
Listen here, partner! Your error patterns need some style, Thalaiva style! 🕶️ The patterns are working but let me tell you something with swag:
Here's how we roll in style: ignoreErrors: [
+ // Basic error captures
'Non-Error exception captured',
'Non-Error promise rejection captured',
'unhandledError',
+
+ // Geocoding and Maps related errors
- /Could not load "geocoder"/,
+ /Could not load ["']geocoder["']/,
- /ChunkLoadError: Loading chunk \d+ failed/,
+ /ChunkLoadError: Loading chunk/,
+
+ // Generic error patterns
/0 Unknown Error/,
- /The Google Maps JavaScript API could not load/,
+ /Google Maps JavaScript API could not load/,
- /kCLErrorDomain error/,
+ /kCLErrorDomain error \d+/,
], Mind-blowing changes, right? 🎭 Let me explain like a boss:
Let's verify if we're not missing any errors, style: Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
src/main.ts
Outdated
/Could not load "geocoder"/, | ||
/ChunkLoadError: Loading chunk \d+ failed/, | ||
/Http failure response for .*: 0 Unknown Error/, | ||
/unhandledError/, | ||
/The Google Maps JavaScript API could not load/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added regex expression to ignore similar kind of issues
src/main.ts
Outdated
'Non-Error promise rejection captured', | ||
'Could not load "geocoder"', | ||
/Could not load "geocoder"/, | ||
/ChunkLoadError: Loading chunk \d+ failed/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add example of how this error title looks like?
src/main.ts
Outdated
/Http failure response for .*: 0 Unknown Error/, | ||
/unhandledError/, | ||
/The Google Maps JavaScript API could not load/, | ||
/The operation couldn’t be completed\. \(kCLErrorDomain error \d+\)/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we just add kclErrorDomain error why the earlier text is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove only these specific errors, yes kclErrorDomain error will also work
src/main.ts
Outdated
/Could not load "geocoder"/, | ||
/ChunkLoadError: Loading chunk \d+ failed/, | ||
/Http failure response for .*: 0 Unknown Error/, | ||
/unhandledError/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/unhandledError/
-> 'unhandledError'
if not using any regex - also move this to top where all strings related error messages are defined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
src/main.ts
Outdated
'Could not load "geocoder"', | ||
/Could not load "geocoder"/, | ||
/ChunkLoadError: Loading chunk \d+ failed/, | ||
/Http failure response for .*: 0 Unknown Error/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just add 0 Unknown Error
? since I've seen this issue occurring while fetching svgs or other files as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok we can do this, in discarded issues I found it for HTTP failure so added this
src/main.ts
Outdated
'Could not load "geocoder"', | ||
/Could not load "geocoder"/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's different in both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed removing this
|
* fix: Added the regex for discarding the sentry issues * Added missed issue to ignore * Updated the errors * minor comments fix
Clickup
https://app.clickup.com/t/86cx3rrh6
Code Coverage
Please add code coverage here
UI Preview
Please add screenshots for UI changes
Summary by CodeRabbit