Opentelemetry.Collectorinclude module type of struct include Exporter endinclude module type of struct include Opentelemetry_core.Exporter endtype 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. Watch active to know when it's complete.
self_metrics : unit -> Opentelemetry_core.Metrics.t list;metrics about the exporter itself
*)}Main exporter interface.
val dummy : unit -> tDummy exporter, does nothing
val shutdown : t -> unitval cleanup : t -> unitinclude module type of struct include Sdk endinclude module type of struct include Sdk endval get : unit -> Opentelemetry_core.Exporter.t optionval active : unit -> Opentelemetry_util.Aswitch.tAswitch 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.
val set :
?traces:Provider_config.t ->
?metrics:Provider_config.t ->
?logs:Provider_config.t ->
Opentelemetry_core.Exporter.t ->
unitval self_metrics : unit -> Opentelemetry_core.Metrics.t listval get_tracer :
?name:string ->
?version:string ->
?attrs:(string * [< Opentelemetry_core.Value.t ]) list ->
?__MODULE__:string ->
unit ->
Tracer.tGet a tracer forwarding to the current main exporter.
val get_meter :
?name:string ->
?version:string ->
?attrs:(string * [< Opentelemetry_core.Value.t ]) list ->
?__MODULE__:string ->
unit ->
Meter.tGet a meter forwarding to the current main exporter.
val get_logger :
?name:string ->
?version:string ->
?attrs:(string * [< Opentelemetry_core.Value.t ]) list ->
?__MODULE__:string ->
unit ->
Logger.tGet a logger forwarding to the current main exporter.
val self_debug_to_stderr : ?min_level:Self_debug.level -> unit -> unit