Span

org.llm4s.trace.model.Span
See theSpan companion object
final case class Span(spanId: SpanId, traceId: TraceId, parentSpanId: Option[SpanId], name: String, kind: SpanKind, startTime: Instant, endTime: Option[Instant], status: SpanStatus, attributes: Map[String, SpanValue], events: List[SpanEvent])

A single unit of work within a trace.

Value parameters

attributes

typed key/value metadata attached to the span

endTime

when the span ended; None while still running

events

ordered list of point-in-time annotations within the span

kind

semantic category of the operation

name

human-readable operation name

parentSpanId

parent span, or None for the root span

spanId

unique identifier for this span

startTime

when the span started

status

outcome of the operation

traceId

identifier of the containing trace

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def end(endTime: Instant): Span
def withAttribute(key: String, value: SpanValue): Span
def withEvent(event: SpanEvent): Span
def withStatus(status: SpanStatus): Span

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product