Octez_telemetry.TraceparentA traceparent describes the position of the incoming request in its trace graph in a portable, fixed-length format.
See https://www.w3.org/TR/trace-context/#design-overview
A piece of data with an attached origin from distributed trace graph.
val encoding : t Tezos_base.TzPervasives.Data_encoding.encodingval to_string : t -> stringval from_string : string -> (t, string) Stdlib.resultval from_scope : Opentelemetry.Scope.t -> tfrom_scope scope constructs a traceparent that can be used to link a new span to scope.
val instrument : ?origin:Opentelemetry.Scope.t -> 'a -> 'a instrumentedinstrument ?origin x attach a traceparent to provided origin. If origin is omitted, the current scope from the ambient context is used.
val current : unit -> t optioncurrent () returns the traceparent identifiying the current scope from the ambient context.
val propagate :
?service_name:string ->
?attrs:('a -> (string * Opentelemetry.value) Tezos_base.TzPervasives.trace) ->
?kind:Opentelemetry_proto.Trace.span_span_kind ->
?links:Opentelemetry_proto.Trace.span_link Tezos_base.TzPervasives.trace ->
span_name:('a -> string) ->
'a instrumented ->
(Opentelemetry.Scope.t -> 'a -> 'b Lwt.t) ->
'b Lwt.tpropagate span_name x k creates a span for the execution of k x.data.