The current span type. See SpanType
for more information.
Adds a key-value pair as a label to the trace span. The value will be converted to a string if it is not already, and both the key and value may be truncated according to the user's configuration.
The label's key.
The label's value.
Creates and starts a child span under this root span. If the root span is a real span (type = ROOT), the child span will be as well (type = CHILD). Otherwise, if the root span's type is UNTRACED or UNCORRELATED, the child span will be of the same type.
Options for creating the child span.
A new Span object.
Ends the span. This method should only be called once.
A custom span end time; defaults to the time when endSpan was called if not provided.
Gets the current trace context serialized as a string, or an empty string if it can't be generated.
The stringified trace context.
Generated using TypeDoc
Represents the root span within a trace.