A mock span useful for testing.
Starts a new Span.
The name of the span.
The SpanContext this span belongs to
The SpanKind of this Span
The identifier of the parent Span
The startTime of the event (defaults to now)
Known attributes, if any.
True if end() has been called on the Span
The Span's kind
The Span's current name
The id of the parent Span, if any.
The start time of the Span
The Span's current status
Adds an event to the Span
The name of the event
The associated attributes to add for this event
Returns the SpanContext associated with this Span.
Marks the end of Span execution.
The time to use as the Span's end time. Defaults to the current time.
Returns whether this span will be recorded
Sets an attribute on the Span
The attribute key
The attribute value
Sets attributes on the Span
The attributes to add
Sets a status on the span. Overrides the default of SpanStatusCode.OK.
The status to set.
Returns the Tracer that created this Span
Updates the name of the Span
the new Span name
Generated using TypeDoc