diff --git a/opentelemetry/Opentelemetry/Collector/index.html b/opentelemetry/Opentelemetry/Collector/index.html index e0c6263a..c93dc17c 100644 --- a/opentelemetry/Opentelemetry/Collector/index.html +++ b/opentelemetry/Opentelemetry/Collector/index.html @@ -1,5 +1,5 @@ -
Opentelemetry.CollectorCollector types
These types are used by backend implementations, to send events to collectors such as Jaeger.
Note: most users will not need to touch this module
Sender interface for a message of type msg. Inspired from Logs' reporter (see its doc) but without over as it doesn't make much sense in presence of batching.
The ret callback is used to return the desired type (unit, or a Lwt promise, or anything else) once the event has been transferred to the backend. It doesn't mean the event has been collected yet, it could sit in a batch queue for a little while.
module type BACKEND = sig ... endCollector client interface.
type backend = (module BACKEND)module Noop_backend : BACKENDmodule Debug_backend (B : BACKEND) : BACKENDval debug_backend : backendval set_backend : backend -> unitSet collector backend
val get_backend : unit -> backend optionCurrent backend, if any
val send_trace :
+Collector (opentelemetry.Opentelemetry.Collector) Module Opentelemetry.Collector
Collector types
These types are used by backend implementations, to send events to collectors such as Jaeger.
Note: most users will not need to touch this module
Sender interface for a message of type msg. Inspired from Logs' reporter (see its doc) but without over as it doesn't make much sense in presence of batching.
The ret callback is used to return the desired type (unit, or a Lwt promise, or anything else) once the event has been transferred to the backend. It doesn't mean the event has been collected yet, it could sit in a batch queue for a little while.
module type BACKEND = sig ... endCollector client interface.
type backend = (module BACKEND)module Noop_backend : BACKENDmodule Debug_backend (B : BACKEND) : BACKENDval debug_backend : backendval set_backend : backend -> unitSet collector backend
val get_backend : unit -> backend optionCurrent backend, if any
val send_trace :
Opentelemetry_proto.Trace.resource_spans list ->
ret:(unit -> 'a) ->
'aval send_metrics :
diff --git a/opentelemetry/Opentelemetry/Scope/index.html b/opentelemetry/Opentelemetry/Scope/index.html
index 94763f96..1348cd48 100644
--- a/opentelemetry/Opentelemetry/Scope/index.html
+++ b/opentelemetry/Opentelemetry/Scope/index.html
@@ -12,4 +12,4 @@
?attrs:key_value list ->
?dropped_attributes_count:int ->
t ->
- Span_link.tTurn the scope into a span link
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 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 set_kind : t -> Span_kind.t -> unitSet the span's kind.
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.
+ Span_link.tTurn the scope into a span link
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 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 set_kind : t -> Span_kind.t -> unitSet the span's kind.
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.Span_kindtype t = Proto.Trace.span_span_kind = Opentelemetry.Span_kindtype t = Proto.Trace.span_span_kind =