Skip to content

Commit

Permalink
Note that thirdPartyErrorFilterIntegration is not supported with Lo…
Browse files Browse the repository at this point in the history
…ader or CDN bundles (#11053)

Co-authored-by: Sigrid Huemer <[email protected]>
  • Loading branch information
lforst and s1gr1d committed Aug 13, 2024
1 parent 1b8a47d commit 584839e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/platforms/javascript/common/configuration/filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ There are four modes you can choose from:

If you choose a mode to only apply tags, the tags can then be used in Sentry to filter your issue stream with the `third_party_code` tag in the issue search bar.

<Note>

The `thirdPartyErrorFilterIntegration` will not work with the [Sentry Loader Script or CDN Bundles](https://docs.sentry.io/platforms/javascript/install/loader/).
This is the case because the Sentry Loader Script and CDN Bundles are detected as "third party" by the integration. This makes it apply the chosen behavior to almost all events, since the Sentry SDK wraps many browser-native APIs.

</Note>

## Filtering Transaction Events

To prevent certain transactions from being reported to Sentry, use the <PlatformIdentifier name="traces-sampler" /> or <PlatformIdentifier name="before-send-transaction" /> configuration option, which allows you to provide a function to evaluate the current transaction and drop it if it's not one you want.
Expand Down

0 comments on commit 584839e

Please sign in to comment.