package opentelemetry
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4aaee2025957acf71434a027bd57ee699a9ae927e6b49804fb1e999e16a03694
sha512=f3ec030fc4ca0483c3fc143eaa802e2aa02b4c25e1a03ec967bd017fad8a4ef6287e9f9688486434d1ac2fc403217658b61d2c7f3709c092c939b93f412ee5c5
doc/opentelemetry/Opentelemetry/Collector/index.html
Module Opentelemetry.CollectorSource
include module type of struct include Exporter end
include module type of struct include Opentelemetry_core.Exporter end
type t = Opentelemetry_core.Exporter.t = {export : Opentelemetry_core.Any_signal_l.t -> unit;(*Export a batch of signals. Called by the provider when signals are ready to be sent.
*)active : unit -> Opentelemetry_util.Aswitch.t;(*Lifecycle switch: turns off when the exporter has fully shut down (i.e. the consumer queue is drained).
*)shutdown : unit -> unit;(*
*)shutdown ()initiates shutdown: flushes remaining batches, closes the queue, etc. Watchactiveto know when it's complete.self_metrics : unit -> Opentelemetry_core.Metrics.t list;(*metrics about the exporter itself
*)
}Main exporter interface.
include module type of struct include Sdk end
include module type of struct include Sdk end
Remove current exporter, if any.
Aswitch of the installed exporter, or Aswitch.dummy if none.
Tick all providers and run all registered callbacks. Call this periodically (e.g. every 500ms) to drive metrics collection, GC metrics, and batch timeout flushing. This is the single function client libraries should call from their ticker.
Regularly emit metrics about the OTEL SDK. Idempotent.
val get_tracer :
?name:??? ->
?version:??? ->
?attrs:??? ->
?__MODULE__:??? ->
unit ->
Tracer.tGet a tracer forwarding to the current main exporter.
Get a meter forwarding to the current main exporter.
val get_logger :
?name:??? ->
?version:??? ->
?attrs:??? ->
?__MODULE__:??? ->
unit ->
Logger.tGet a logger forwarding to the current main exporter.