-
Notifications
You must be signed in to change notification settings - Fork 397
feat(checkout): CHECKOUT-7036 Filter out convertcart-related issues on Sentry. #1092
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,7 +45,7 @@ export default class SentryErrorLogger implements ErrorLogger { | |
| init({ | ||
| sampleRate: SAMPLE_RATE, | ||
| beforeSend: this.handleBeforeSend, | ||
| denyUrls: [...(config.denyUrls || []), 'polyfill~checkout', 'sentry~checkout'], | ||
| denyUrls: [...(config.denyUrls || []), 'polyfill~checkout', 'sentry~checkout', 'convertcart'], | ||
| integrations: [ | ||
| new Integrations.GlobalHandlers({ | ||
| onerror: false, | ||
|
|
@@ -135,6 +135,12 @@ export default class SentryErrorLogger implements ErrorLogger { | |
| } | ||
|
|
||
| private handleBeforeSend: (event: Event, hint?: EventHint) => Event | null = (event, hint) => { | ||
| if ( | ||
| event.breadcrumbs?.filter((breadcrumb) => breadcrumb.data?.url.includes('convertcart')) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to use and take advantage of https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#deny-urls
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yesterday, the same Sentry issue's URL was https://www.extremekartz.com/checkout, today it is https://mcneelamusic.com/checkout/order-confirmation.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found this in github issues getsentry/sentry-javascript#3147, seems similar. It also links a PR for denyUrls.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have added |
||
| ) { | ||
| return null; | ||
| } | ||
|
|
||
| if (event.exception) { | ||
| if ( | ||
| !this.shouldReportExceptions( | ||
|
|
||
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.
Do you for see us having a list of works like
convertcartthat we need to ignore in future?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.
For other issues, we might have to use other signatures to identify them.
Right now, I think we just aim to remove
convertcart.