hs-opentelemetry-api
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenTelemetry.Common

Synopsis

Documentation

newtype Timestamp Source #

Wall-clock timestamp stored as nanoseconds since Unix epoch. Matches the OTLP wire format directly (fixed64 nanoseconds).

Since: 0.0.1.0

Constructors

Timestamp Word64 

newtype TraceFlags Source #

Contain details about the trace. Unlike TraceState values, TraceFlags are present in all traces. The current version of the specification only supports a single flag called sampled.

Since: 0.0.1.0

Constructors

TraceFlags Word8 

data OptionalTimestamp Source #

Unboxed optional timestamp. SomeTimestamp stores a single unboxed Word64# directly in its closure: 2 words total vs 4 for Just (Timestamp ns).

Since: 0.0.1.0

isEnded :: OptionalTimestamp -> Bool Source #

Since: 0.0.1.0

mkTimestamp :: Word64 -> Word64 -> Timestamp Source #

Construct a Timestamp from seconds and nanoseconds components. Useful for tests and interop with TimeSpec-based APIs.

Since: 0.0.1.0

timestampToNanoseconds :: Timestamp -> Word64 Source #

Extract nanoseconds since epoch. Identity on the internal representation.

Since: 0.0.1.0