1234567891011121314151617181920(** Access/set the current span from some ambient context.
@since 0.12 *)openTypesmoduleCallbacks=structtype'stt={with_current_span_set_to:'a.'st->span->(span->'a)->'a;(** [with_current_span_set_to span f] sets the span as current span,
enters [f span], and restores the previous current span if any *)get_current_span:'st->spanoption;(** Access the current span from some ambient scope. This is only
supported for collectors that provide a [current_span_wrap] field.
*)}endtypet=|ASP_none|ASP_some:'st*'stCallbacks.t->t