Opentelemetry_ambient_contextJust forward to the ambient-context library
include module type of struct include Ambient_context endinclude module type of struct include Ambient_context_core endmodule Context = Ambient_context.Contextmodule Storage = Ambient_context.Storageval default_storage : Ambient_context_core.Storage.tval get_current_storage : unit -> Storage.tval set_current_storage : Storage.t -> unitval get_context : unit -> Ambient_context_core.Context.tGet the context from the current storage, or Hmap.empty if there is no ambient context.
val with_context : Ambient_context_core.Context.t -> (unit -> 'a) -> 'awith_context ctx f calls f() in an ambient context in which get_context() will return ctx. Once f() returns, the storage is reset to its previous value.
val get : 'a Context.key -> 'a optionGet the ambient context and then look up k in it
val new_key : unit -> 'a Context.keyCreate a new key
val with_key_bound_to : 'a Hmap.key -> 'a -> (unit -> 'b) -> 'bwith_key_bound_to storage k v f calls f() in a context updated to have k map to v.
val with_key_unbound : 'a Hmap.key -> (unit -> 'b) -> 'bwith_key_unbound k f calls f() in a context updated to have k bound to no value.