SpanFilterinterface
Filter entry that can match a span to control its settings.
Properties (28)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| addContextToTrace⚓︎ | boolean | true | x | Whether the filtering context will be added as span attributes to the span. See 'Filter'. |
| attributeSettings⚓︎ | { [x: string]: AttributeSettings } | x | x | Controls the publishing of specific attributes, by name. An entry names an attribute by its
flattened (dot-separated) name, or everything nested under it - Applies to everything written on the spans this filter matches - the filtering context,
the additional attributes, the data added through |
| attributeSettingsMode⚓︎ | AttributeSettingsMode | x | x | How the |
| autoSetSuccessStatus⚓︎ | boolean | false | x | Whether the span's status will be set to OK on completion, if it's still UNSET. See 'Filter'. |
| canBeRoot⚓︎ | boolean | true | x | Whether the span will be able to start a new trace. If false, it will only be able to be added to an existing trace. |
| 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. |
| countMetric⚓︎ | boolean | false | x | Whether the span will be counted in the insights_trace_count metric. See TracesSettings.countMetric. |
| countMetricOnDisabledSpans⚓︎ | boolean | false | x | Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.countMetric. |
| disableNesting⚓︎ | boolean | x | x | Forces the span to create a new trace. |
| disablePropagation⚓︎ | boolean | false | x | Whether the span will not inject its propagation info into data transfer objects for span nesting across system boundaries. |
| durationMetric⚓︎ | boolean | false | x | Whether the span will be counted in the insights_trace_duration metric. See TracesSettings.durationtMetric. |
| durationMetricOnDisabledSpans⚓︎ | boolean | false | x | Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.durationMetric. |
| enabled⚓︎ | boolean | true | x | Whether the span will be created or will be a no-op. See 'Filter'. |
| forceChildTracing⚓︎ | boolean | false | x | If true, any child spans (including nested spans across sytem boundaries) will be forced to be traced, even if their span filter configuration is set to not enabled. |
| forceStatus⚓︎ | SpanStatusCode | x | x | If set, will force the span to have this status code, regardless of anything set explicitly or any errors caught automatically. |
| 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
|
| level⚓︎ | "OFF" | "LOWEST" | "DIAGNOSTIC" | "DEBUG" | "INFO" | "WARN" | "HIGHEST" | INFO | x | Default span attribute verbosity level. See 'Filter'. |
| linkToParent⚓︎ | boolean | false | x | If Applies wherever the parent comes from: an explicit propagation info, the
current tracing state, or the default propagation info. The span's own
children are nested under it as usual, in its new trace. Without a parent
there is nothing to link, and the span is an ordinary root; the same goes
for The parent still counts as a parent for |
| log⚓︎ | boolean | TracesAsLogsOptions | false | x | "Traces as logs": whether the span is also published as a log entry, using the The places the option can be set in - a matching filter, the span's own options, the
|
| maxAttributeDepth⚓︎ | number | 5 | x | How deep addData method should recurse into objects when adding attributes to spans. |
| minDurationMs⚓︎ | number | 0 | x | If specified, spans whose duration is lower than this will not be sampled. |
| otelSpanOptions⚓︎ | SpanOptions | x | x | OTEL span options |
| overrideDefaultFilters⚓︎ | boolean | false | x | If |
| resultMetric⚓︎ | boolean | false | x | Whether the span will be counted in the insights_trace_result metric. See TracesSettings.resultMetric. |
| resultMetricOnDisabledSpans⚓︎ | boolean | false | x | Whether the span will be counted in the insights_trace_result metric if disabled. See TracesSettings.resultMetric. |
| sample⚓︎ | number | boolean | true | x | Default sampling setting/probability. See 'SamplingSettings'. |
| 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. |
| stopPropagationIfSpanIsDisabled⚓︎ | boolean | false | x | If a tracing span is disabled by filter, setting this to "true" will stop the propagation of trace nesting info across it. |