Optional ReadonlyattributesInitial attributes to set on the span.
Optional ReadonlykindThe span kind (defaults to 'internal').
Optional ReadonlyparentOptional parent context for span parenting.
When set, the real implementation uses this as the OTel parent context.
Optional ReadonlyrootStarts the span as the ROOT of a new trace, ignoring both
SpanOptions.parentContext and whatever span is active.
Use it for work that has no causal parent of its own but may run inside an unrelated span — a background sweep started from inside a request, for one — so the span is not attributed to that request.
Optional for implementors: an ITelemetryService implementation that
ignores it starts the span under the ACTIVE span (or under
parentContext when that carries both ids).
Options for span creation.
Since
0.2.0