Module Imandrakit_log.Trace_async

module Trace = Trace_core
val k_parent_scope : Trace.explicit_span option LS.key

Current parent scope for async spans

val set_parent_scope : Trace.explicit_span -> unit

Set the parent scope by hand

val add_exn_to_span : Trace.explicit_span -> exn -> unit
val add_bt_to_span : Trace.explicit_span -> Stdlib.Printexc.raw_backtrace -> unit
val with_span : ?level:Trace.Level.t -> ?data:(unit -> (string * Trace.user_data) list) -> ?__FUNCTION__:string -> __FILE__:string -> __LINE__:int -> string -> (Trace.explicit_span -> 'a) -> 'a0

Wrap f() in a async span.