SpanStatusJson

org.llm4s.trace.model.TraceModelJson.SpanStatusJson
final implicit class SpanStatusJson(val status: SpanStatus) extends AnyVal

Extension methods that add JSON serialisation to SpanStatus values.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def toJson: Value

Serialises this span status to its JSON object representation.

Serialises this span status to its JSON object representation.

Attributes

Returns

A ujson.Value encoding the status type and optional error message.

Concrete fields