Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TraceId
- randomTraceId :: MonadIO m => m TraceId
- traceIdFromBytes :: ByteString -> Maybe TraceId
- traceIdToBytes :: TraceId -> ByteString
- traceIdFromHex :: ByteString -> Maybe TraceId
- traceIdToHex :: TraceId -> ByteString
- data SpanId
- randomSpanId :: MonadIO m => m SpanId
- spanIdFromBytes :: ByteString -> Maybe SpanId
- spanIdToBytes :: SpanId -> ByteString
- spanIdFromHex :: ByteString -> Maybe SpanId
- spanIdToHex :: SpanId -> ByteString
Documentation
128-bit trace identifiers.
TraceId
s are guaranteed to have at least one non-zero bit.
randomTraceId :: MonadIO m => m TraceId Source #
traceIdFromBytes :: ByteString -> Maybe TraceId Source #
Create a TraceId
from a ByteString
.
Fails if the ByteString
is not exactly 16 bytes long, or if it contains
only zero bytes.
traceIdToBytes :: TraceId -> ByteString Source #
Convert a TraceId
to a ByteString
of 16 bytes.
traceIdFromHex :: ByteString -> Maybe TraceId Source #
Create a TraceId
from a ByteString
of hex characters.
Fails if the ByteString
is not exactly 32 characters long, or if it
contains only zero characters.
traceIdToHex :: TraceId -> ByteString Source #
Convert a TraceId
to a ByteString
of 32 lowercase hex characters.
64-bit span identifiers
SpanId
s are guaranteed to have at least one non-zero bit.
randomSpanId :: MonadIO m => m SpanId Source #
spanIdFromBytes :: ByteString -> Maybe SpanId Source #
Create a SpanId
from a ByteString
.
Fails if the ByteString
is not exactly 8 bytes long, or if it contains
only zero bytes.
spanIdToBytes :: SpanId -> ByteString Source #
Convert a SpanId
to a ByteString
of 8 bytes.
spanIdFromHex :: ByteString -> Maybe SpanId Source #
Create a SpanId
from a ByteString
of hex characters.
Fails if the ByteString
is not exactly 16 characters long, or if it
contains only zero characters.
spanIdToHex :: SpanId -> ByteString Source #
Convert a SpanId
to a ByteString
of 16 lowercase hex characters.