Imandrakit_log.Trace_asyncmodule Trace = Trace_coremodule Log : Logger.LOGval dummy_trace_id : trace_idtype explicit_span = {span : span_id;Identifier for this span. Several explicit spans might share the same identifier since we can differentiate between them via meta.
trace_id : trace_id;The trace this belongs to
*)mutable meta : unit;Metadata for this span (and its context). This can be used by collectors to carry collector-specific information from the beginning of the span, to the end of the span.
*)}val k_span_ctx : Trace.span Hmap.keyCurrent parent scope for async spans
val with_span :
?level:Trace.Level.t ->
?parent:Trace.span ->
?data:(unit -> (string * Trace.user_data) list) ->
?__FUNCTION__:string ->
__FILE__:string ->
__LINE__:int ->
string ->
(Trace.span -> 'a) ->
'aWrap f() in a async span.
val with_fresh_trace :
level:Trace.Level.t ->
?data:(unit -> (string * Trace.user_data) list) ->
?__FUNCTION__:string ->
__FILE__:string ->
__LINE__:int ->
string ->
(Trace.span -> 'a) ->
'aval add_data_to_span : Trace.span -> (string * Trace.user_data) list -> unitval enrich_span_service : ?version:string -> Trace.span -> unitval enrich_span_deployment :
?id:string ->
?name:string ->
deployment:string ->
Trace.span ->
unitval add_auto_enrich_span : (Trace.span -> unit) -> unitAdd a hook that will be called on every explicit span