package opentelemetry
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b635c486d1333cbb7276cc0075d5e01b017d4b37bd5941377ee1be07dfa25a45
sha512=2a19bf4e371ed2751e018c734ead2fd130d378ef0e018cda7b4aa3048af3e0db771fbd78d936199b34164950454bce0f3cb6211455e3647f7b7a85f4649bb22c
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.