Interface SpanOptions

Options needed for span creation

interface SpanOptions {
    attributes?: Attributes;
    kind?: SpanKind;
    links?: Link[];
    root?: boolean;
    startTime?: TimeInput;
}

Properties

attributes?: Attributes

A span's attributes

kind?: SpanKind

The SpanKind of a span

Default

{@link SpanKind.INTERNAL}
links?: Link[]

Links span to other spans

root?: boolean

The new span should be a root span. (Ignore parent from context).

startTime?: TimeInput

A manually specified start time for the created Span object.