diff --git a/dev/opentelemetry/Opentelemetry/Scope/index.html b/dev/opentelemetry/Opentelemetry/Scope/index.html index a6974fee..40af4e37 100644 --- a/dev/opentelemetry/Opentelemetry/Scope/index.html +++ b/dev/opentelemetry/Opentelemetry/Scope/index.html @@ -1,2 +1,2 @@ -
Opentelemetry.ScopeScopes.
A scope is a trace ID and the span ID of the currently active span.
type t = {trace_id : Trace_id.t;span_id : Span_id.t;mutable events : Event.t list;mutable attrs : key_value list;}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.
Opentelemetry.ScopeScopes.
A scope is a trace ID and the span ID of the currently active span.
type t = {trace_id : Trace_id.t;span_id : Span_id.t;mutable events : Event.t list;mutable attrs : key_value list;}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.
Obtain current scope from thread-local storage, if available
val with_scope : t -> (unit -> 'a) -> 'awith_scope sc f calls f() in a context where sc is the (thread)-local scope, then reverts to the previous local scope, if any.
Opentelemetry.Thread_localThread/Domain local storage
This allows the creation of global state that is per-domain or per-thread.
val create : unit -> 'a tCreate new storage
val get : 'a t -> 'a optionGet current value
val with_ : 'a t -> 'a -> ('a option -> 'b) -> 'bwith_ var x f sets var to x for this thread, calls f prev where prev is the value currently in var (if any), and then restores the old value of var for this thread.
Opentelemetry.Thread_localThread/Domain local storage
This allows the creation of global state that is per-domain or per-thread.
val create : unit -> 'a tCreate new storage
val get : 'a t -> 'a optionGet current value
val set : 'a t -> 'a -> unitval remove : _ t -> unitval get_or_create : create:(unit -> 'a) -> 'a t -> 'aval with_ : 'a t -> 'a -> ('a option -> 'b) -> 'bwith_ var x f sets var to x for this thread, calls f prev where prev is the value currently in var (if any), and then restores the old value of var for this thread.