Trace

org.llm4s.trace.model.Trace
See theTrace companion object
final case class Trace(traceId: TraceId, rootSpanId: Option[SpanId], metadata: Map[String, String], startTime: Instant, endTime: Option[Instant], status: SpanStatus)

Top-level container for a logical operation, grouping one or more spans.

Value parameters

endTime

when the trace ended; None while still running

metadata

arbitrary string key/value tags (e.g. experiment name, user ID)

rootSpanId

the entry-point span, or None before the first span is recorded

startTime

when the trace started

status

overall outcome of the trace

traceId

unique identifier for this 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): Trace
def withMetadata(key: String, value: String): Trace
def withStatus(status: SpanStatus): Trace

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product