Opentelemetry.TraceTraces.
See the spec
type span = Span.tval emit : span list -> unitSync emitter
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.
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:(Trace_id.t * Span_id.t * string) list ->
string ->
( scope -> 'a ) ->
'aSync span guard