diff --git a/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html b/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html index 4fba26b0..04a03a15 100644 --- a/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html +++ b/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html @@ -39,10 +39,7 @@ ?links:Opentelemetry.Span_link.t list -> string -> (scope -> 'a) -> - (unit -> - 'a) - * ((unit, string * Stdlib.Printexc.raw_backtrace) result -> - unit)
Sync span guard.
Notably, this includes implicit scope-tracking: if called without a ~scope argument (or ~parent/~trace_id), it will check in the Ambient_context for a surrounding environment, and use that as the scope. Similarly, it uses Scope.with_ambient_scope to set a new scope in the ambient context, so that any logically-nested calls to with_ will use this span as their parent.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.
val with_ :
+ (unit -> 'a) * ((unit, exn * Stdlib.Printexc.raw_backtrace) result -> unit)Sync span guard.
Notably, this includes implicit scope-tracking: if called without a ~scope argument (or ~parent/~trace_id), it will check in the Ambient_context for a surrounding environment, and use that as the scope. Similarly, it uses Scope.with_ambient_scope to set a new scope in the ambient context, so that any logically-nested calls to with_ will use this span as their parent.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.
val with_ :
?force_new_trace_id:bool ->
?trace_state:string ->
?service_name:string ->
diff --git a/opentelemetry-lwt/Opentelemetry_lwt/index.html b/opentelemetry-lwt/Opentelemetry_lwt/index.html
index f0775e98..990fb62d 100644
--- a/opentelemetry-lwt/Opentelemetry_lwt/index.html
+++ b/opentelemetry-lwt/Opentelemetry_lwt/index.html
@@ -1,2 +1,2 @@
-Opentelemetry_lwt (opentelemetry-lwt.Opentelemetry_lwt) Module Opentelemetry_lwt
module Span_id = Opentelemetry.Span_idmodule Trace_id = Opentelemetry.Trace_idmodule Event = Opentelemetry.Eventmodule Span = Opentelemetry.Spanmodule Span_link = Opentelemetry.Span_linkmodule Globals = Opentelemetry.Globalsmodule Timestamp_ns = Opentelemetry.Timestamp_nsmodule GC_metrics = Opentelemetry.GC_metricsmodule Metrics_callbacks = Opentelemetry.Metrics_callbacksmodule Trace_context = Opentelemetry.Trace_contextmodule Trace : sig ... endmodule Metrics : sig ... endmodule Logs : sig ... end
+Opentelemetry_lwt (opentelemetry-lwt.Opentelemetry_lwt) Module Opentelemetry_lwt
module Span_id = Opentelemetry.Span_idmodule Trace_id = Opentelemetry.Trace_idmodule Event = Opentelemetry.Eventmodule Span = Opentelemetry.Spanmodule Span_link = Opentelemetry.Span_linkmodule Globals = Opentelemetry.Globalsmodule Timestamp_ns = Opentelemetry.Timestamp_nsmodule GC_metrics = Opentelemetry.GC_metricsmodule Metrics_callbacks = Opentelemetry.Metrics_callbacksmodule Trace_context = Opentelemetry.Trace_contextThis is equivalent to Lwt.reraise. We inline it here so we don't force to use Lwt's latest version
module Trace : sig ... endmodule Metrics : sig ... endmodule Logs : sig ... end
diff --git a/opentelemetry/Opentelemetry/Scope/index.html b/opentelemetry/Opentelemetry/Scope/index.html
index b9468a2d..6d10a519 100644
--- a/opentelemetry/Opentelemetry/Scope/index.html
+++ b/opentelemetry/Opentelemetry/Scope/index.html
@@ -1,2 +1,2 @@
-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;
}val 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.
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 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.
+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;
}val 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 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 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.
diff --git a/opentelemetry/Opentelemetry/Trace/index.html b/opentelemetry/Opentelemetry/Trace/index.html
index 5894cbc2..19ea569e 100644
--- a/opentelemetry/Opentelemetry/Trace/index.html
+++ b/opentelemetry/Opentelemetry/Trace/index.html
@@ -33,10 +33,7 @@
?links:Span_link.t list ->
string ->
(scope -> 'a) ->
- (unit ->
- 'a)
- * ((unit, string * Stdlib.Printexc.raw_backtrace) result ->
- unit)Sync span guard.
Notably, this includes implicit scope-tracking: if called without a ~scope argument (or ~parent/~trace_id), it will check in the Ambient_context for a surrounding environment, and use that as the scope. Similarly, it uses Scope.with_ambient_scope to set a new scope in the ambient context, so that any logically-nested calls to with_ will use this span as their parent.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.
val with_ :
+ (unit -> 'a) * ((unit, exn * Stdlib.Printexc.raw_backtrace) result -> unit)Sync span guard.
Notably, this includes implicit scope-tracking: if called without a ~scope argument (or ~parent/~trace_id), it will check in the Ambient_context for a surrounding environment, and use that as the scope. Similarly, it uses Scope.with_ambient_scope to set a new scope in the ambient context, so that any logically-nested calls to with_ will use this span as their parent.
NOTE be careful not to call this inside a Gc alarm, as it can cause deadlocks.