diff --git a/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html b/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html index 072da2bf..a8849ad9 100644 --- a/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html +++ b/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html @@ -21,7 +21,7 @@ | `String of string ]) list -> span list -> - unit
Sync emitter.
This instructs the collector to forward the spans to some backend at a later point.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.
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;mutable links : Opentelemetry.Span_link.t list;}Sync emitter.
This instructs the collector to forward the spans to some backend at a later point.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.
type scope = Opentelemetry.Scope.t = {trace_id : Opentelemetry.Trace_id.t;span_id : Opentelemetry.Span_id.t;mutable items : Opentelemetry.Scope.item_list;}val add_event :
Opentelemetry.Scope.t ->
(unit -> Opentelemetry.Event.t) ->
unitval add_attrs :
diff --git a/opentelemetry/Opentelemetry/Scope/index.html b/opentelemetry/Opentelemetry/Scope/index.html
index 0fd63277..0caf0da0 100644
--- a/opentelemetry/Opentelemetry/Scope/index.html
+++ b/opentelemetry/Opentelemetry/Scope/index.html
@@ -1,9 +1,9 @@
-Scope (opentelemetry.Opentelemetry.Scope) Module Opentelemetry.Scope
Scopes.
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;mutable links : Span_link.t list;
}val make :
+Scope (opentelemetry.Opentelemetry.Scope) Module Opentelemetry.Scope
Scopes.
A scope is a trace ID and the span ID of the currently active span.
val links : t -> Span_link.t listval make :
trace_id:Trace_id.t ->
span_id:Span_id.t ->
?events:Event.t list ->
?attrs:key_value list ->
?links:Span_link.t list ->
unit ->
- tval to_span_ctx : t -> Span_ctx.tTurn the scope into a span context
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 record_exception : t -> exn -> Stdlib.Printexc.raw_backtrace -> unitAdd attributes 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 add_links : t -> (unit -> Span_link.t list) -> unitAdd links to the scope. It will be aggregated into the span.
Note that this takes a function that produces links, and will only call it if there is an instrumentation backend.
val ambient_scope_key : t {Ambient_context}2.keyThe opaque key necessary to access/set the ambient scope with Ambient_context.
Obtain current scope from Ambient_context, if available.
val with_ambient_scope : t -> (unit -> 'a) -> 'awith_ambient_scope sc thunk calls thunk() in a context where sc is the (thread|continuation)-local scope, then reverts to the previous local scope, if any.
+ tval to_span_ctx : t -> Span_ctx.tval record_exception : t -> exn -> Stdlib.Printexc.raw_backtrace -> unitval add_links : t -> (unit -> Span_link.t list) -> unitval ambient_scope_key : t {Ambient_context}2.keyval with_ambient_scope : t -> (unit -> 'a) -> 'a
diff --git a/opentelemetry/Opentelemetry/Trace/index.html b/opentelemetry/Opentelemetry/Trace/index.html
index 8bd986e5..850caaf0 100644
--- a/opentelemetry/Opentelemetry/Trace/index.html
+++ b/opentelemetry/Opentelemetry/Trace/index.html
@@ -21,7 +21,7 @@
| `String of string ])
list ->
span list ->
- unitSync emitter.
This instructs the collector to forward the spans to some backend at a later point.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.
type scope = Scope.t = {trace_id : Trace_id.t;span_id : Span_id.t;mutable events : Event.t list;mutable attrs : Span.key_value list;mutable links : Span_link.t list;}Sync emitter.
This instructs the collector to forward the spans to some backend at a later point.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.