SpanFilterinterface
Filter entry that can match a span to control its settings.
Properties (3)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| context⚓︎ | { [key: string]: string | number | boolean; } | x | x | Specifies the filtering context values used for matching spans. Spans match only if all the values in this object match the context values returned by the context getter callback and the filteringContext config property. Start strings with "#" for case-insensitive regex match. |
| injectOTELHeaders⚓︎ | false | "same-origin" | "all-origins" | false | x | For spans instrumenting HTTP requests, controls automatic injection of the trace
context headers with the current span's context. The headers are produced by the
globally registered propagator (W3C trace context -
Applies to the fetch/XHR instrumentation and to the platform's Electron
net.request instrumentation. Note the main process has no origin, so
|
| source⚓︎ | string | x | x | Specifies the source string used for matching spans.
Spans match only if their source equals this value, or
if their source starts with ' Start string with "#" for case-insensitive regex match. |