hs-opentelemetry-propagator-b3-0.0.1.0: Trace propagation via HTTP headers following the b3 tracestate spec.
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenTelemetry.Propagator.B3.Internal

Description

Conversion of the hs-opentelemetry internal representation of the trace ID and the span ID and the B3 header representation of them each other.

|----------------+---------------------------------------+------------------------------| | | Trace ID | Span ID | |----------------+---------------------------------------+------------------------------| | Internal | 128-bit integer | 64-bit integer | | B3 Header | Hex text of 64-bit or 128-bit integer | Hex text of 64-bit integer | |----------------+---------------------------------------+------------------------------|

Synopsis

Encoders

encodeTraceId Source #

Arguments

:: TraceId 
-> ByteString

ASCII text of 64-bit integer

encodeSpanId Source #

Arguments

:: SpanId 
-> ByteString

ASCII text of 64-bit integer

Decoders

B3SingleHeader

SampleState

data SamplingState Source #

Constructors

Accept 
Deny 
Debug 
Defer 

Instances

Instances details
Eq SamplingState Source # 
Instance details

Defined in OpenTelemetry.Propagator.B3.Internal

Conversions

samplingStateFromValue :: Value -> Maybe SamplingState Source #

Used to decode the SamplingState from a TraceState Value.

printSamplingStateSingle :: SamplingState -> Maybe Text Source #

Encode a SamplingState as the Sampling State component of the b3 header value.

Header Keys