Setu-TS
    Preparing search index...

    Interface SpanOptions

    Options for span creation.

    0.2.0

    interface SpanOptions {
        attributes?: Readonly<Record<string, SpanAttributeValue>>;
        kind?: SpanKind;
        parentContext?: TelemetryContext;
        root?: boolean;
    }
    Index
    attributes?: Readonly<Record<string, SpanAttributeValue>>

    Initial attributes to set on the span.

    kind?: SpanKind

    The span kind (defaults to 'internal').

    parentContext?: TelemetryContext

    Optional parent context for span parenting.

    When set, the real implementation uses this as the OTel parent context.

    0.2.0

    root?: boolean

    Starts the span as the ROOT of a new trace, ignoring both SpanOptions.parentContext and whatever span is active.

    Use it for work that has no causal parent of its own but may run inside an unrelated span — a background sweep started from inside a request, for one — so the span is not attributed to that request.

    Optional for implementors: an ITelemetryService implementation that ignores it starts the span under the ACTIVE span (or under parentContext when that carries both ids).

    0.9.0