package opentelemetry
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c3989bb678f57e5276209d3c60afb29cdca33122288de55e591fbbe2e50a662c
sha512=ba8339256c9b2d8c99c8304991a3047f280a01e492add4cf82bf1d43dfa51e790366c09c6901c0501b8b8e1f810c6e128e33dd33542d785013407f642ade4eea
doc/opentelemetry.core/Opentelemetry_core/Instrument/index.html
Module Opentelemetry_core.InstrumentSource
Global 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.
Add an instrument's emit to all. Called automatically by the standard instrument-creation functions.
Implementation details for a custom stateful instrument. Pass to Make to obtain a create function.
Build a custom instrument type from a CUSTOM_IMPL. The returned create registers the instrument into all automatically.