InstrumenterSpanOptions interface

Options passed to startSpan as a superset of TracingSpanOptions.

Extends

Properties

packageName

The name of the package invoking this trace.

packageVersion

The version of the package invoking this trace.

tracingContext

The current tracing context. Defaults to an implementation-specific "active" context.

Inherited Properties

spanAttributes

Initial set of attributes to set on a span.

spanKind

The kind of span. Implementations should default this to "client".

spanLinks

A collection of TracingSpanLink to link to this span.

Property Details

packageName

The name of the package invoking this trace.

packageName: string

Property Value

string

packageVersion

The version of the package invoking this trace.

packageVersion?: string

Property Value

string

tracingContext

The current tracing context. Defaults to an implementation-specific "active" context.

tracingContext?: TracingContext

Property Value

Inherited Property Details

spanAttributes

Initial set of attributes to set on a span.

spanAttributes?: {[key: string]: unknown}

Property Value

{[key: string]: unknown}

Inherited From TracingSpanOptions.spanAttributes

spanKind

The kind of span. Implementations should default this to "client".

spanKind?: TracingSpanKind

Property Value

Inherited From TracingSpanOptions.spanKind

A collection of TracingSpanLink to link to this span.

spanLinks?: TracingSpanLink[]

Property Value

Inherited From TracingSpanOptions.spanLinks