Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Opentelemetry.Trace end
val emit :
?service_name:string ->
?attrs:
(string
* [< `Bool of bool
| `Float of float
| `Int of int
| `None
| `String of string ])
list ->
span list ->
unit
type scope = Opentelemetry.Scope.t = {
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;
}
val with_' :
?force_new_trace_id:bool ->
?trace_state:string ->
?service_name:string ->
?attrs:(string * Opentelemetry.value) list ->
?kind:Opentelemetry.Span.kind ->
?trace_id:Opentelemetry.Trace_id.t ->
?parent:Opentelemetry.Span.id ->
?scope:Opentelemetry.Scope.t ->
?links:Opentelemetry.Span_link.t list ->
string ->
(scope -> 'a) ->
(unit -> 'a) * ((unit, string) Stdlib.result -> unit)
val with_ :
?force_new_trace_id:bool ->
?trace_state:string ->
?service_name:string ->
?attrs:(string * Opentelemetry.value) list ->
?kind:Opentelemetry.Span.kind ->
?trace_id:Opentelemetry.Trace_id.t ->
?parent:Opentelemetry.Span.id ->
?scope:Opentelemetry.Scope.t ->
?links:Opentelemetry.Span_link.t list ->
string ->
(Opentelemetry.Scope.t -> 'a Lwt.t) ->
'a Lwt.t
Sync span guard