Module Opentelemetry_core.Trace_id

Trace ID.

This 16 bytes identifier is shared by all spans in one trace.

type t
val create : unit -> t
val dummy : t
val compare : t -> t -> int
val pp : Stdlib.Format.formatter -> t -> unit
val is_valid : t -> bool
val to_bytes : t -> bytes
val of_bytes : bytes -> t
val to_hex : t -> string
val to_hex_into : t -> bytes -> int -> unit
val of_hex : string -> t
val of_hex_substring : string -> int -> t
module Map : Map.S with type key = t
val k_trace_id : t Hmap.key

Hmap key to carry around a Trace_id.t, to remember what the current trace is.

  • since 0.8