XRay


JsonCtx<'JsonValue>

Namespace: XRay
Parent Module: Codec

Constructors

ConstructorDescription
new(...)
Signature: (tryGetProperty:(string -> 'JsonValue -> 'JsonValue option) * setField:(string -> 'JsonValue -> 'JsonValue -> 'JsonValue) * jnull:'JsonValue * ctxCodec:Codec<'JsonValue,TraceContext>) -> JsonCtx<'JsonValue>

CompiledName: .ctor

Instance members

Instance memberDescription
embeddedFieldDefault(codec)
Signature: codec:Codec<'JsonValue,'?8104> -> Codec<'JsonValue,('?8104 * TraceContext)>

Creates a codec for a pair of a type and TraceContext using a type's existing Json codec.

TraceContext
Signature: Codec<'JsonValue,TraceContext>

A JSON codec for the TraceContext.

CompiledName: get_TraceContext

TraceContextWithFallback(provider)
Signature: (provider:(unit -> TraceContext)) -> Codec<'JsonValue,TraceContext>

JSON Codec that calls a provider for a new value when decoder fails

Fork me on GitHub