mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-10 04:35:46 -04:00
34 lines
594 B
OCaml
34 lines
594 B
OCaml
(** 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 : 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 *)
|