SpanEventJson

org.llm4s.trace.model.TraceModelJson.SpanEventJson
final implicit class SpanEventJson(val event: SpanEvent) extends AnyVal

Extension methods that add JSON serialisation to SpanEvent values.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def toJson: Value

Serialises this span event to a JSON object containing name, timestamp, and attributes.

Serialises this span event to a JSON object containing name, timestamp, and attributes.

Attributes

Returns

A ujson.Value representing the span event.

Concrete fields