Trace_context.TraceparentThe traceparent header https://www.w3.org/TR/trace-context/#traceparent-header
val of_value : ?trace_state:string -> string -> (Span_ctx.t, string) resultParse the value of the traceparent header.
The values are of the form:
{ version } - { trace_id } - { parent_id } - { flags }For example:
00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01Only the known bits of {flags} are kept (see Trace_flags). The result is a Span_ctx.t carrying trace_state (the tracestate header value).
val to_value :
trace_flags:Trace_flags.t ->
trace_id:Trace_id.t ->
parent_id:Span_id.t ->
unit ->
string?sampled