Span
abstract class Span(val id: String, val name: String, val level: Level, val context: TracingEvent.Span.Context, val parent: TracingEvent.Span?, var startAt: Instant?, var endAt: Instant?, val tags: MutableTags, val events: MutableList<TracingEvent.Span.Event>, var status: TracingEvent.Span.Status) : TracingEvent(source)
Represents a span in a tracing system, which can either be a Local or Remote span.
A span is a unit of work within a trace and may contain child spans, tags, events, and a status. https://opentelemetry.io/docs/specs/otel/trace/api/#span
Inheritors
Constructors
Link copied to clipboard
constructor(id: String, name: String, level: Level, context: TracingEvent.Span.Context, parent: TracingEvent.Span?, startAt: Instant?, endAt: Instant?, tags: MutableTags, events: MutableList<TracingEvent.Span.Event>, status: TracingEvent.Span.Status)
Types
Link copied to clipboard
class Local(val id: String, val name: String, val level: Level, tracer: Tracer, val parent: TracingEvent.Span? = null, tags: Tags = emptyMap(), traceId: String = parent?.context?.traceId ?: Tracer.traceId()) : TracingEvent.Span
Represents a local span in a tracing system. A span is a unit of work within a trace and can contain child spans.
Link copied to clipboard
data class Status(val code: TracingEvent.Span.Status.Code = Code.UNSET, val error: Throwable? = null, val description: String? = null)
Properties
Link copied to clipboard
The context of the span, providing trace and span identifiers.
Link copied to clipboard
A list of events associated with the span.
Link copied to clipboard
The parent span, if any, can be null.
Link copied to clipboard
The status of the span, containing the result of its execution.
Link copied to clipboard
A map of tags associated with the span.