Skip to content

Ignoring errors from <anonymous> files #3147

@asbjornh

Description

@asbjornh

We're seeing a lot of errors that have stack traces like this:

image

Our website uses Google Tag Manager which injects tons of weird crashy stuff into our app that we don't know (or care) about.
I'm assuming that since there's no stack information available for these errors, they have arisen from injected code that for some reason has no accessible source URL (maybe inline or cross origin scripts?).

In any case, it seems like we're unable to do anything about these errors which means they essentially mount up to noise (and lots of it), so we would like to simply ignore these. I haven't been able to find any mention of how to ignore all errors without a source URL in the documentation (https://docs.sentry.io/platforms/javascript/configuration/).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: browserIssues related to the Sentry Browser SDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions