Skip to content

Commit 7189aca

Browse files
committed
feat(js): Add ignoreSpans documentation to Options page
1 parent 3a92cfb commit 7189aca

File tree

1 file changed

+10
-0
lines changed
  • docs/platforms/javascript/common/configuration

1 file changed

+10
-0
lines changed

docs/platforms/javascript/common/configuration/options.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,16 @@ Please note that the `span` you receive as an argument is a serialized object, n
433433

434434
</SdkOption>
435435

436+
<SdkOption name="ignoreSpans" type='Array<string | RegExp | {name?: string | RegExp, op?: string | RegExp}>' defaultValue='[]'>
437+
438+
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.
439+
440+
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.
441+
442+
By default, no spans are ignored.
443+
444+
</SdkOption>
445+
436446
## Session Replay Options
437447

438448
<SdkOption name="replaysSessionSampleRate" type='number' categorySupported={['browser']}>

0 commit comments

Comments
 (0)