TraceModelJson
Provides JSON serialisation and deserialisation helpers for trace model types.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TraceModelJson.type
Members list
Type members
Classlikes
Extension methods that add JSON serialisation to SpanEvent values.
Extension methods that add JSON serialisation to SpanEvent values.
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Extension methods that add JSON serialisation to SpanId values.
Extension methods that add JSON serialisation to SpanId values.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Extension methods that add JSON serialisation to Span values.
Extension methods that add JSON serialisation to Span values.
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Extension methods that add JSON serialisation to SpanKind values.
Extension methods that add JSON serialisation to SpanKind values.
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Extension methods that add JSON serialisation to SpanStatus values.
Extension methods that add JSON serialisation to SpanStatus values.
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Extension methods that add JSON serialisation to SpanValue variants.
Extension methods that add JSON serialisation to SpanValue variants.
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Extension methods that add JSON serialisation to TraceId values.
Extension methods that add JSON serialisation to TraceId values.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Parses a Span from a JSON object containing all required span fields.
Parses a Span from a JSON object containing all required span fields.
Value parameters
- json
-
The JSON value representing a span.
Attributes
- Returns
-
Right(Span)on success, orLeft(ValidationError)on missing or malformed fields.
Parses a SpanEvent from a JSON object with name, timestamp, and attributes fields.
Parses a SpanEvent from a JSON object with name, timestamp, and attributes fields.
Value parameters
- json
-
The JSON value representing a span event.
Attributes
- Returns
-
Right(SpanEvent)on success, orLeft(ValidationError)on malformed input.
Parses a SpanId from a JSON value.
Parses a SpanId from a JSON value.
Value parameters
- json
-
The JSON value expected to be a string.
Attributes
- Returns
-
Right(SpanId)on success, orLeft(ValidationError)if the value is not a string.
Parses a SpanKind from a JSON string value.
Parses a SpanKind from a JSON string value.
Value parameters
- json
-
The JSON value expected to be a string matching a known span kind name.
Attributes
- Returns
-
Right(SpanKind)on success, orLeft(ValidationError)for unknown or non-string input.
Parses a SpanStatus from a JSON object with a type field.
Parses a SpanStatus from a JSON object with a type field.
Value parameters
- json
-
The JSON value representing a span status.
Attributes
- Returns
-
Right(SpanStatus)on success, orLeft(ValidationError)on unknown or malformed input.
Parses a SpanValue from a JSON value, supporting typed and legacy untyped formats.
Parses a SpanValue from a JSON value, supporting typed and legacy untyped formats.
Value parameters
- json
-
The JSON value representing a span attribute value.
Attributes
- Returns
-
Right(SpanValue)on success, orLeft(ValidationError)if the format is unrecognised.
Parses a Trace from a JSON object containing all required trace fields.
Parses a Trace from a JSON object containing all required trace fields.
Value parameters
- json
-
The JSON value representing a trace.
Attributes
- Returns
-
Right(Trace)on success, orLeft(ValidationError)on missing or malformed fields.
Parses a TraceId from a JSON value.
Parses a TraceId from a JSON value.
Value parameters
- json
-
The JSON value expected to be a string.
Attributes
- Returns
-
Right(TraceId)on success, orLeft(ValidationError)if the value is not a string.
Implicits
Implicits
Extension methods that add JSON serialisation to SpanEvent values.
Extension methods that add JSON serialisation to SpanEvent values.
Attributes
Extension methods that add JSON serialisation to SpanId values.
Extension methods that add JSON serialisation to SpanId values.
Attributes
Extension methods that add JSON serialisation to Span values.
Extension methods that add JSON serialisation to Span values.
Attributes
Extension methods that add JSON serialisation to SpanKind values.
Extension methods that add JSON serialisation to SpanKind values.
Attributes
Extension methods that add JSON serialisation to SpanStatus values.
Extension methods that add JSON serialisation to SpanStatus values.
Attributes
Extension methods that add JSON serialisation to SpanValue variants.
Extension methods that add JSON serialisation to SpanValue variants.
Attributes
Extension methods that add JSON serialisation to TraceId values.
Extension methods that add JSON serialisation to TraceId values.