graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Tracing.TraceId

Synopsis

Documentation

data TraceId Source #

128-bit trace identifiers.

TraceIds are guaranteed to have at least one non-zero bit.

Instances

Instances details
Eq TraceId Source # 
Instance details

Defined in Hasura.Tracing.TraceId

Methods

(==) :: TraceId -> TraceId -> Bool #

(/=) :: TraceId -> TraceId -> Bool #

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.

data SpanId Source #

64-bit span identifiers

SpanIds are guaranteed to have at least one non-zero bit.

Instances

Instances details
Eq SpanId Source # 
Instance details

Defined in Hasura.Tracing.TraceId

Methods

(==) :: SpanId -> SpanId -> Bool #

(/=) :: SpanId -> SpanId -> Bool #

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.