Opentelemetry_core.InstrumentGlobal registry of metric instruments.
Instruments are stateful accumulators (counters, gauges, histograms, …). update is called at any time to record a value; emit is called at collection time by a Meter.t, which supplies the clock.
All instruments register themselves into a global list on creation via register, so any meter can collect the full set in one pass. Make sure to only create instruments at the toplevel so that the list doesn't grow forever.
val register : 'a t -> unitAdd an instrument's emit to all. Called automatically by the standard instrument-creation functions.
module type CUSTOM_IMPL = sig ... endImplementation details for a custom stateful instrument. Pass to Make to obtain a create function.
module Make (I : CUSTOM_IMPL) : sig ... endBuild a custom instrument type from a CUSTOM_IMPL. The returned create registers the instrument into all automatically.
module Int_counter : sig ... endmodule Float_counter : sig ... endmodule Int_gauge : sig ... endmodule Float_gauge : sig ... endmodule Histogram : sig ... endmodule Internal : sig ... end