Imandrakit_log.Trace_asyncmodule Trace = Trace_coreval equal_span_kind : span_kind -> span_kind -> Ppx_deriving_runtime.boolval span_kind_to_twine_ref :
(Imandrakit_twine.Encode.t ->
span_kind ->
Imandrakit_twine.Encode.immediate)
refval span_kind_of_twine_ref :
(Imandrakit_twine.Decode.t -> int -> span_kind) refval span_kind_to_twine :
Imandrakit_twine.Encode.t ->
span_kind ->
Imandrakit_twine.Encode.immediateval span_kind_of_twine : Imandrakit_twine.Decode.t -> int -> span_kindval pp_span_kind :
Ppx_deriving_runtime.Format.formatter ->
span_kind ->
Ppx_deriving_runtime.unitval show_span_kind : span_kind -> Ppx_deriving_runtime.stringtype Trace.extension_event += | Ev_link_span of Trace.explicit_span * Trace.explicit_span_ctxLink the given span to the given context. The context isn't the parent, but the link can be used to correlate both spans.
*)| Ev_record_exn of {sp : Trace.span;exn : exn;bt : Stdlib.Printexc.raw_backtrace;error : bool;Is this an actual internal error?
*)}Record exception and potentially turn span to an error
*)| Ev_push_async_parent of Trace.explicit_span_ctxSet current async span
*)| Ev_pop_async_parent of Trace.explicit_span_ctxRemove current async span
*)| Ev_set_span_kind of Trace.span * span_kindval link_spans : Trace.explicit_span -> src:Trace.explicit_span_ctx -> unitLink the given span to the given context
val set_span_kind : Trace.span -> span_kind -> unitval k_span_ctx : Trace.explicit_span_ctx Hmap.keyCurrent parent scope for async spans
val add_exn_to_span :
is_error:bool ->
Trace.span ->
exn ->
Stdlib.Printexc.raw_backtrace ->
unitRecord exception in the span
val push_async_parent : Trace.explicit_span_ctx -> unitval pop_async_parent : Trace.explicit_span_ctx -> unitval with_async_parent : Trace.explicit_span_ctx -> (unit -> 'a) -> 'aval with_span :
?level:Trace.Level.t ->
?parent:Trace.explicit_span_ctx ->
?data:(unit -> (string * Trace.user_data) list) ->
?__FUNCTION__:string ->
__FILE__:string ->
__LINE__:int ->
string ->
((Trace.explicit_span * Trace.explicit_span_ctx) -> 'a) ->
'aWrap f() in a async span.
val enrich_span_service : ?version:string -> Trace.explicit_span -> unitval enrich_span_deployment :
?id:string ->
?name:string ->
deployment:string ->
Trace.explicit_span ->
unitval add_auto_enrich_span : (Trace.explicit_span -> unit) -> unitAdd a hook that will be called on every explicit span