Package-level declarations

Types

Link copied to clipboard

An abstract implementation of an asynchronous measurement handle. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard
abstract class AbstractHistogram<T : Number> : Histogram<T>

An abstract implementation of a histogram. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard
Link copied to clipboard
abstract class AbstractMeter : Meter

An abstract implementation of a meter. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard

An abstract implementation of a meter provider. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard

An abstract implementation of a monotonic counter. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard

An abstract implementation of an up-down counter. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard

Callback parameter passed to record a gauge value

Link copied to clipboard

A handle to a registered async measurement (e.g. Gauge or AsyncUpDownCounter)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Histogram<T : Number>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Meter

Factory for creating instruments for recording measurements.

Link copied to clipboard
interface MeterProvider

Entry point for metrics.

Link copied to clipboard
Link copied to clipboard
interface UpDownCounter

Inherited functions

Link copied to clipboard
inline fun <T> DoubleHistogram.measureSeconds(attributes: <Error class: unknown class> = emptyAttributes(), context: Context? = null, block: () -> T): T

Measure how long block takes to execute and record the duration in seconds using millisecond precision.

Link copied to clipboard
fun DoubleHistogram.recordPayloadSize(value: Long?, attributes: <Error class: unknown class> = emptyAttributes(), context: Context? = null)

Records the size of a payload in bytes to this histogram.

Link copied to clipboard
fun DoubleHistogram.recordSeconds(value: <Error class: unknown class>, attributes: <Error class: unknown class> = emptyAttributes(), context: Context? = null)

Record a duration in seconds using millisecond precision.