diff --git a/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html b/opentelemetry-lwt/Opentelemetry_lwt/Trace/index.html index 04a03a15..072da2bf 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;}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;}val add_event :
Opentelemetry.Scope.t ->
(unit -> Opentelemetry.Event.t) ->
unitval add_attrs :
@@ -38,7 +38,7 @@
?scope:Opentelemetry.Scope.t ->
?links:Opentelemetry.Span_link.t list ->
string ->
- (scope -> 'a) ->
+ (Opentelemetry.Scope.t -> 'a) ->
(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 ->
diff --git a/opentelemetry/Opentelemetry/Scope/index.html b/opentelemetry/Opentelemetry/Scope/index.html
index 6d10a519..0fd63277 100644
--- a/opentelemetry/Opentelemetry/Scope/index.html
+++ b/opentelemetry/Opentelemetry/Scope/index.html
@@ -1,2 +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;
}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.
+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 :
+ 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.
diff --git a/opentelemetry/Opentelemetry/Trace/index.html b/opentelemetry/Opentelemetry/Trace/index.html
index 19ea569e..8bd986e5 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;}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 = 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;}val with_' :
?force_new_trace_id:bool ->
?trace_state:string ->
?service_name:string ->
@@ -32,7 +32,7 @@
?scope:Scope.t ->
?links:Span_link.t list ->
string ->
- (scope -> 'a) ->
+ (Scope.t -> 'a) ->
(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 ->
diff --git a/opentelemetry/Opentelemetry/index.html b/opentelemetry/Opentelemetry/index.html
index 97fc9b4c..5fc9b021 100644
--- a/opentelemetry/Opentelemetry/index.html
+++ b/opentelemetry/Opentelemetry/index.html
@@ -1,2 +1,2 @@
-Opentelemetry (opentelemetry.Opentelemetry) Module Opentelemetry
Opentelemetry types and instrumentation
module Lock : sig ... endGlobal lock.
module Rand_bytes : sig ... endGeneration of random identifiers.
module AList : sig ... endAtomic list, for internal usage
Wire format
module Proto = Opentelemetry_protoProtobuf types.
Timestamps
module Timestamp_ns : sig ... endUnix timestamp.
Interface to data collector
module Collector : sig ... endCollector types
Identifiers
module Trace_id : sig ... endTrace ID.
val k_trace_id : Trace_id.t Hmap.keyHmap key to carry around a Trace_id.t, to remember what the current trace is.
module Span_id : sig ... endUnique ID of a span.
module Span_ctx : sig ... endSpan context. This bundles up a trace ID and parent ID.
val k_span_ctx : Span_ctx.t Hmap.keyHmap key to carry around a Span_ctx.t, e.g. to remember what the current parent span is.
Attributes and conventions
module Conventions : sig ... endSemantic conventions
A value in a key/value attribute
type key_value = string * valueGlobal settings
module Globals : sig ... endProcess-wide metadata, environment variables, etc.
Traces and Spans
module Event : sig ... endEvents.
Scopes
module Scope : sig ... endScopes.
Traces
module Span_link : sig ... endSpan Link
module Span : sig ... endSpans.
module Trace : sig ... endTraces.
Metrics
module Metrics : sig ... endMetrics.
module Metrics_callbacks : sig ... endA set of callbacks that produce metrics when called. The metrics are automatically called regularly.
Logs
module Logs : sig ... endLogs.
Utils
module Trace_context : sig ... endImplementation of the W3C Trace Context spec
module GC_metrics : sig ... endExport GC metrics.
+Opentelemetry (opentelemetry.Opentelemetry) Module Opentelemetry
Opentelemetry types and instrumentation
module Lock : sig ... endGlobal lock.
module Rand_bytes : sig ... endGeneration of random identifiers.
module AList : sig ... endAtomic list, for internal usage
Wire format
module Proto = Opentelemetry_protoProtobuf types.
Timestamps
module Timestamp_ns : sig ... endUnix timestamp.
Interface to data collector
module Collector : sig ... endCollector types
Identifiers
module Trace_id : sig ... endTrace ID.
val k_trace_id : Trace_id.t Hmap.keyHmap key to carry around a Trace_id.t, to remember what the current trace is.
module Span_id : sig ... endUnique ID of a span.
module Span_ctx : sig ... endSpan context. This bundles up a trace ID and parent ID.
val k_span_ctx : Span_ctx.t Hmap.keyHmap key to carry around a Span_ctx.t, e.g. to remember what the current parent span is.
Attributes and conventions
module Conventions : sig ... endSemantic conventions
A value in a key/value attribute
type key_value = string * valueGlobal settings
module Globals : sig ... endProcess-wide metadata, environment variables, etc.
Traces and Spans
module Event : sig ... endEvents.
module Span_link : sig ... endSpan Link
Scopes
module Scope : sig ... endScopes.
Traces
module Span : sig ... endSpans.
module Trace : sig ... endTraces.
Metrics
module Metrics : sig ... endMetrics.
module Metrics_callbacks : sig ... endA set of callbacks that produce metrics when called. The metrics are automatically called regularly.
Logs
module Logs : sig ... endLogs.
Utils
module Trace_context : sig ... endImplementation of the W3C Trace Context spec
module GC_metrics : sig ... endExport GC metrics.