Opentelemetry_lwt.TraceSourceinclude module type of struct include Opentelemetry.Trace endval make_resource_spans :
?service_name:??? ->
?attrs:??? ->
Opentelemetry.Proto.Trace.span list ->
Opentelemetry.Proto.Trace.resource_spanstype scope = Opentelemetry.Trace.scope = {trace_id : Opentelemetry.Trace_id.t;span_id : Opentelemetry.Span_id.t;mutable events : Opentelemetry.Event.t list;mutable attrs : Opentelemetry.Span.key_value list;}Scope to be used with with_.
Add an event to the scope. It will be aggregated into the span.
Note that this takes a function that produces an event, and will only call it if there is an instrumentation backend.
Add an attr to the scope. It will be aggregated into the span.
Note that this takes a function that produces attributes, and will only call it if there is an instrumentation backend.
val with_ :
?trace_state:??? ->
?service_name:??? ->
?attrs:??? ->
?kind:??? ->
?trace_id:??? ->
?parent:??? ->
?scope:??? ->
?links:??? ->
string ->
(Opentelemetry.Trace.scope -> 'a Lwt.t) ->
'a Lwt.tSync span guard