package opentelemetry

  1. Overview
  2. Docs
Core library for instrumentation and serialization for https://opentelemetry.io

Install

dune-project
 Dependency

Authors

Maintainers

Sources

opentelemetry-0.92.tbz
sha256=b635c486d1333cbb7276cc0075d5e01b017d4b37bd5941377ee1be07dfa25a45
sha512=2a19bf4e371ed2751e018c734ead2fd130d378ef0e018cda7b4aa3048af3e0db771fbd78d936199b34164950454bce0f3cb6211455e3647f7b7a85f4649bb22c

doc/opentelemetry.core/Opentelemetry_core/Trace_context/Traceparent/index.html

Module Trace_context.TraceparentSource

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

Sourceval name : string
Sourceval of_value : ?trace_state:??? -> string -> (Span_ctx.t, string) 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

Only the known bits of {flags} are kept (see Trace_flags). The result is a Span_ctx.t carrying trace_state (the tracestate header value).

  • since 0.92 returns a {!Span_ctx.t}
Sourceval to_value : trace_flags:Trace_flags.t -> trace_id:Trace_id.t -> parent_id:Span_id.t -> unit -> string
  • since 0.92 takes a mandatory [~trace_flags] instead of

?sampled