InstrumenterSpanOptions interface
Options passed to startSpan as a superset of TracingSpanOptions.
- Extends
Properties
package |
The name of the package invoking this trace. |
package |
The version of the package invoking this trace. |
tracing |
The current tracing context. Defaults to an implementation-specific "active" context. |
Inherited Properties
span |
Initial set of attributes to set on a span. |
span |
The kind of span. Implementations should default this to "client". |
span |
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
spanLinks
A collection of TracingSpanLink to link to this span.
spanLinks?: TracingSpanLink[]
Property Value
Inherited From TracingSpanOptions.spanLinks