From 7189aca70ddfd046ee2a99121534a651abdf672f Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 6 Aug 2025 17:23:23 +0200 Subject: [PATCH 1/2] feat(js): Add `ignoreSpans` documentation to Options page --- .../javascript/common/configuration/options.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx index a926942575e7f..31d96e454ae33 100644 --- a/docs/platforms/javascript/common/configuration/options.mdx +++ b/docs/platforms/javascript/common/configuration/options.mdx @@ -433,6 +433,16 @@ Please note that the `span` you receive as an argument is a serialized object, n + + +A list of strings or regex patterns matching span names that shouldn't be sent to Sentry. Spans matching these patterns will not be sent to Sentry. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead. You can also provide an object with a `name` and `op` property to match both the span name and the operation name. Note that at least `name` or `op` must be provided. + +If a root span matches any of the specified patterns, the entire local trace will be dropped. If a child span matches, its children will be reparented to the dropped span's parent span. + +By default, no spans are ignored. + + + ## Session Replay Options From 349c62197664bc70c8d0bdd2568d073505ee4de4 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 12 Aug 2025 13:42:39 +0200 Subject: [PATCH 2/2] Update docs/platforms/javascript/common/configuration/options.mdx Co-authored-by: Alex Krawiec --- docs/platforms/javascript/common/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx index 31d96e454ae33..5bbd92dd268e6 100644 --- a/docs/platforms/javascript/common/configuration/options.mdx +++ b/docs/platforms/javascript/common/configuration/options.mdx @@ -435,7 +435,7 @@ Please note that the `span` you receive as an argument is a serialized object, n -A list of strings or regex patterns matching span names that shouldn't be sent to Sentry. Spans matching these patterns will not be sent to Sentry. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead. You can also provide an object with a `name` and `op` property to match both the span name and the operation name. Note that at least `name` or `op` must be provided. +A list of strings or regex patterns matching span names that shouldn't be sent to Sentry. When using strings, partial matches will be filtered out, so if you need to filter by exact match, use regex patterns instead. You can also provide an object with a `name` and `op` property to match both the span name and the operation name. Note that at least `name` or `op` must be provided. If a root span matches any of the specified patterns, the entire local trace will be dropped. If a child span matches, its children will be reparented to the dropped span's parent span.