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
Source
TraceModel.scala
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

Attributes

Source
TraceModel.scala
def withAttribute(key: String, value: SpanValue): Span

Attributes

Source
TraceModel.scala
def withEvent(event: SpanEvent): Span

Attributes

Source
TraceModel.scala
def withStatus(status: SpanStatus): Span

Attributes

Source
TraceModel.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product