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.
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 a trace span.