Module Opentelemetry_lwt.Trace

include module type of struct include Opentelemetry.Trace end

Traces.

See the spec

val emit : span list -> unit Lwt.t

Emit asynchronously

val with_ : ?trace_state:string -> ?service_name:string -> ?attrs:Span.key_value list -> ?kind:Span.kind -> ?trace_id:Trace_id.t -> ?parent:Span.id -> ?links:(Opentelemetry.Trace_id.t * Opentelemetry.Span_id.t * string) list -> string -> ( (Trace_id.t * Span_id.t) -> 'a Lwt.t Lwt.t ) -> 'a Lwt.t Lwt.t

Sync span guard