SpanJson

org.llm4s.trace.model.TraceModelJson.SpanJson
final implicit class SpanJson(val span: Span) extends AnyVal

Extension methods that add JSON serialisation to Span values.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def toJson: Value

Serialises this span to a JSON object with all span fields.

Serialises this span to a JSON object with all span fields.

Attributes

Returns

A ujson.Value representing the full span.

Concrete fields

val span: Span