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

Any way to ignore errors? #1616

Closed
csantos1113 opened this issue Jun 28, 2022 · 1 comment
Closed

Any way to ignore errors? #1616

csantos1113 opened this issue Jun 28, 2022 · 1 comment

Comments

@csantos1113
Copy link

Sometimes there are errors we don't want to track because they are benign (for example: WICG/resize-observer#38 (comment) "ResizeObserver loop limit exceeded")

Is there a way to ignore errors like Sentry does it? https://docs.sentry.io/clients/javascript/config/

ignoreErrors
Very often, you will come across specific errors that are a result of something other than your application, or errors that you’re completely not interested in. ignoreErrors is a list of these messages to be filtered out before being sent to Sentry as either regular expressions or strings. When using strings, they’ll partially match the messages, so if you need to achieve an exact match, use RegExp patterns instead.

@BenoitZugmeyer
Copy link
Member

You can achieve this with the beforeSend initialization parameter. There is an example to do just that in our documentation.

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

No branches or pull requests

2 participants