diff --git a/opentelemetry/Opentelemetry/Scope/index.html b/opentelemetry/Opentelemetry/Scope/index.html index 04a7209e..031eb04a 100644 --- a/opentelemetry/Opentelemetry/Scope/index.html +++ b/opentelemetry/Opentelemetry/Scope/index.html @@ -1,9 +1,10 @@ -
Opentelemetry.ScopeScopes.
A scope is a trace ID and the span ID of the currently active span.
val links : t -> Span_link.t listval 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 status : t -> Span_status.t optionval make :
trace_id:Trace_id.t ->
span_id:Span_id.t ->
?events:Event.t list ->
?attrs:key_value list ->
?links:Span_link.t list ->
+ ?status:Span_status.t ->
unit ->
- 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}3.keyval with_ambient_scope : t -> (unit -> 'a) -> 'a
+ 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 set_status : t -> Span_status.t -> unitset the span status.
Note that this function will be called only if there is an instrumentation backend.
val ambient_scope_key : t {Ambient_context}3.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.
Opentelemetry.SpanSpans.
A Span is the workhorse of traces, it indicates an operation that took place over a given span of time (indicated by start_time and end_time) as part of a hierarchical trace. All spans in a given trace are bound by the use of the same Trace_id.t.
type t = Proto.Trace.spantype id = Span_id.ttype nonrec kind = Proto.Trace.span_span_kind = type nonrec status_code = Proto.Trace.status_status_code = type key_value =
+Span (opentelemetry.Opentelemetry.Span) Module Opentelemetry.Span
Spans.
A Span is the workhorse of traces, it indicates an operation that took place over a given span of time (indicated by start_time and end_time) as part of a hierarchical trace. All spans in a given trace are bound by the use of the same Trace_id.t.
type t = Proto.Trace.spantype id = Span_id.ttype nonrec kind = Proto.Trace.span_span_kind = type key_value =
string
* [ `Int of int
| `String of string
@@ -11,7 +11,7 @@
?trace_state:string ->
?attrs:key_value list ->
?events:Event.t list ->
- ?status:status ->
+ ?status:Proto.Trace.status ->
trace_id:Trace_id.t ->
?parent:id ->
?links:Span_link.t list ->
diff --git a/opentelemetry/Opentelemetry/Span_status/index.html b/opentelemetry/Opentelemetry/Span_status/index.html
new file mode 100644
index 00000000..e10ce0e3
--- /dev/null
+++ b/opentelemetry/Opentelemetry/Span_status/index.html
@@ -0,0 +1,2 @@
+
+Span_status (opentelemetry.Opentelemetry.Span_status) Module Opentelemetry.Span_status
type t = Proto.Trace.statustype code = Proto.Trace.status_status_code
diff --git a/opentelemetry/Opentelemetry/index.html b/opentelemetry/Opentelemetry/index.html
index 5fc9b021..ee3280cc 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.
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.
+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
module Span_status : sig ... endScopes
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.