package opentelemetry

  1. Overview
  2. Docs

The traceparent header https://www.w3.org/TR/trace-context/#traceparent-header

val name : string
val of_value : string -> (Trace_id.t * Span_id.t, string) Stdlib.result

Parse the value of the traceparent header.

The values are of the form:

{version}-{trace_id}-{parent_id}-{flags}

For example:

00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 

{flags} are currently ignored.

val to_value : trace_id:Trace_id.t -> parent_id:Span_id.t -> unit -> string
OCaml

Innovation. Community. Security.