Skip to content
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(PE-5263): ignore errors from unknown extension #404

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

atticusofsparta
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Jan 11, 2024

Visit the preview URL for this PR (updated for commit 83bd686):

https://arns-portal--pr404-pe-5263-filter-chrom-lbwkg3an.web.app

(expires Fri, 26 Jan 2024 21:02:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1f59769442cb89cf2a92042a342e51fe94047b94

@atticusofsparta atticusofsparta changed the title fix(sentry error): ignore errors from unknown extension fix(PE-5263): ignore errors from unknown extension Jan 11, 2024
return sanitizeEvent(event);
},
})
: {};

export default sentry;

const sanitizeEvent = (event: Sentry.Event): Sentry.Event => {
const filterMessages = new Set([
'chrome-extension://aflkmfhebedbjioipglgcbcmnbpgliof/injected.js',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the best way to ignore extensions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly. I was getting this as the method for ignoring messages, there may be a better way to ignore an actually extension specifically.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I just realized, with new releases of the extension, this would break. More durable to check for the error message I suppose.

@atticusofsparta atticusofsparta merged commit 7802439 into develop Jan 12, 2024
4 checks passed
@atticusofsparta atticusofsparta deleted the PE-5263-filter-chrome-ext-errors branch January 12, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants