123456789101112131415161718192021222324252627282930313233(** A simple span.
This is a concrete representation of spans that is convenient to manipulate.
@since 0.11 *)openTrace_coretypespan_flavor=[`Sync|`Async]typet={name:string;__FUNCTION__:stringoption;__FILE__:string;__LINE__:int;time_ns:int64;(** Time the span was entered. *)mutabletime_exit_ns:int64;(** Time the span was exited. Set at exit, [Int64.max_int] otherwise *)tid:int;(** Thread in which span was created *)trace_id:int64;(** For async spans *)parent:parent;flavor:span_flavor;params:extension_parameterlist;mutabledata:(string*Trace_core.user_data)list;(** Modified by [add_data_to_span] *)}(** The type of spans used by all subscribers. *)typeTrace_core.span+=|Span_simpleoft(** How to turn a {!Simple_span.t} into a {!span}. *)