mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
8 lines
274 B
OCaml
8 lines
274 B
OCaml
(** Storing the current span in ambient context. *)
|
|
|
|
val get : unit -> Span.t option
|
|
(** Find current span from ambient-context *)
|
|
|
|
val with_ambient : Span.t -> (unit -> 'a) -> 'a
|
|
(** [with_ambient span f] runs [f()] with the current ambient span being set to
|
|
[span] *)
|