Module Opentelemetry.Ambient_span

Storing the current span in ambient context.

val get : unit -> Opentelemetry_core.Span.t option

Find current span from ambient-context

val with_ambient : Opentelemetry_core.Span.t -> (unit -> 'a) -> 'a

with_ambient span f runs f() with the current ambient span being set to span