hs-opentelemetry-propagator-datadog-0.0.1.0: Datadog Propagator for OpenTelemetry
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenTelemetry.Propagator.Datadog.Internal

Description

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

Trace IDSpan ID
Internal128-bit integer64-bit integer
Datadog HeaderASCII text of 64-bit integerASCII text of 64-bit integer
Synopsis

Documentation

newTraceIdFromHeader Source #

Arguments

:: ByteString

ASCII text of 64-bit integer

-> ShortByteString

128-bit integer

newSpanIdFromHeader Source #

Arguments

:: ByteString

ASCII text of 64-bit integer

-> ShortByteString

64-bit integer

newHeaderFromTraceId Source #

Arguments

:: ShortByteString

128-bit integer

-> ByteString

ASCII text of 64-bit integer

newHeaderFromSpanId Source #

Arguments

:: ShortByteString

64-bit integer

-> ByteString

ASCII text of 64-bit integer

indexByteArrayNbo Source #

Arguments

:: ByteArray 
-> Int

Offset in Word64-size unit

-> Word64 

Read ByteArray to Word64 with network-byte-order.