Provides an OpenTelemetry like Interface for the Open Telemetry Api (1.9.0) SpanOptions type. Where SpanOptions are options that can be used to configure a span.

interface IOTelSpanOptions {
    attributes?: IOTelAttributes;
    kind?: number;
    recording?: boolean;
    root?: boolean;
    startTime?: OTelTimeInput;
}

Properties

attributes?: IOTelAttributes

A span's attributes

kind?: number

The SpanKind of a span of this span, this is used to specify the relationship between the span and its parent span.

eOTelSpanKind for possible values.

eOTelSpanKind.INTERNAL
recording?: boolean

Specify whether the span should be a recording span, default is true

root?: boolean

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

startTime?: OTelTimeInput

A manually specified start time for the created Span object.