Histogram

interface Histogram<T : Number>

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun record(value: T, attributes: <Error class: unknown class> = emptyAttributes(), context: Context? = null)

Updates the statistics with a value

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.