createDoubleGauge
abstract fun createDoubleGauge(name: String, callback: DoubleGaugeCallback, units: String? = null, description: String? = null): AsyncMeasurementHandle
Create a new Gauge.
Return
a AsyncMeasurementHandle which can be used for de-registering the gauge and stopping the callback from being invoked.
Parameters
name
the instrument name
callback
the callback to invoke when reading the gauge value
units
the unit of measure
description
the human-readable description of the measurement