Meter
The Meter
class serves as an abstract base class for creating different types of metering instruments such as Counters, UpDownCounters, and Gauges. It extends CollectorRegistry.Collector
and provides specialized methods to create these instruments with specified names, units of measurement, and optional descriptions.
Parameters
name
The name of the meter.
level
The logging level for the meter.
Inheritors
Constructors
Types
Functions
Link copied to clipboard
fun <T : Number> upDownCounter(name: String, unit: String? = null, description: String? = null): Meter.Instrument.UpDownCounter<T>
Creates a new up-down counter instrument with the specified name, unit, and description.