Skip to main content

Options that can be provided when using withSpan as a decorator

Properties (5)

Property Type Default Required Description
argMapping⚓︎ | { [x: string]: string } | Array<string | null | undefined> | ((...args: any[]) => any) x x x
defaultFilters⚓︎ SpanFilter[] x x x
spanName⚓︎ string x x

Overrides the name of the exported OTEL span. The source remains the identity used for span filtering, metrics and logging - this only changes the recorded span name (e.g. to follow a semantic convention).

structure⚓︎ "sibling" | "nested" x x

Used to determine the structure of sequence spans.

thisMapping⚓︎ { [x: string]: string } | ((that: any) => any) x x x