From 2010b122e20fe08cd8e422c25c17461cafd0ccb0 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 12 Aug 2024 10:18:06 +0200 Subject: [PATCH 1/2] Note that `thirdPartyErrorFilterIntegration` is not supported with Loader or CDN bundles --- .../javascript/common/configuration/filtering.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/platforms/javascript/common/configuration/filtering.mdx b/docs/platforms/javascript/common/configuration/filtering.mdx index cc9f78e439fa4..ee2f8e9cb3138 100644 --- a/docs/platforms/javascript/common/configuration/filtering.mdx +++ b/docs/platforms/javascript/common/configuration/filtering.mdx @@ -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. + + +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 would be detected by the integration as "third party", causing it to apply the chosen behaviour for almost all events, because the Sentry SDK wraps a lot of browser-native API. + + + ## Filtering Transaction Events To prevent certain transactions from being reported to Sentry, use the or configuration option, which allows you to provide a function to evaluate the current transaction and drop it if it's not one you want. From 9253307081860fa91d16f24726a5fd2c0aad22da Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 12 Aug 2024 17:02:55 +0200 Subject: [PATCH 2/2] Update docs/platforms/javascript/common/configuration/filtering.mdx Co-authored-by: Sigrid Huemer <32902192+s1gr1d@users.noreply.github.com> --- docs/platforms/javascript/common/configuration/filtering.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/javascript/common/configuration/filtering.mdx b/docs/platforms/javascript/common/configuration/filtering.mdx index ee2f8e9cb3138..f55588a47a76d 100644 --- a/docs/platforms/javascript/common/configuration/filtering.mdx +++ b/docs/platforms/javascript/common/configuration/filtering.mdx @@ -192,7 +192,7 @@ If you choose a mode to only apply tags, the tags can then be used in Sentry to 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 would be detected by the integration as "third party", causing it to apply the chosen behaviour for almost all events, because the Sentry SDK wraps a lot of browser-native API. +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.