Closed laukstein closed 4 years ago
Hi @laukstein. We automatically ignore errors from web extensions so things should be less noisy anyway.
If you are getting some errors through that you want to match against that kind of list, it's straightforward to do with the notifier:
const ignorePatterns = [ /* your list goes here */ ]
Bugsnag.start({
onError: event => {
if (ignorePatterns.some(re => re.test(event.errors[0].errorMessage))) return false
}
})
But we also have tools for this so you don't have ship a new version of your app to start ignoring – we have ignore by error class, domain whitelists etc. in our app which apply immediately. If you click "discard" on an error in the dashboard, all new instances of that error will be discarded too.
Hope this helps!
@bengourley, why to close this task? You just posted a bad API example. This task is feature request to make it user friendly, intuitive, like does Sentry (example posted above).
Bugsnag has no easy way to define what errors to ignore, referring to https://docs.bugsnag.com/platforms/javascript/customizing-error-reports/#errors
See https://docs.sentry.io/platforms/javascript/#decluttering-sentry "ignoreErrors" how easily it could be achieved.