package opentelemetry
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=30f344e7168a793d02c12d69c0f566b06eb963f52db3321e415ef6c5cd3d504d
sha512=19160da37cab59a23333d815baa67035f666e700a386953ec9957c685a0b72fa87919bac6a6651e50b1619773b3be7170bcc067c2d5316436b988bcf8d18dcba
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.