Interface SpanOptions

Options for creating a span.

interface SpanOptions {
    kind?: SpanKind;
    attributes?: SpanAttributes;
    links?: SpanLink[];
    startTime?: number;
    parent?: TraceContext;
}

Properties

kind?: SpanKind

Span kind

attributes?: SpanAttributes

Initial attributes

links?: SpanLink[]

Links to other spans

startTime?: number

Start time override

parent?: TraceContext

Parent context