AbstractHistogram
An abstract implementation of a histogram. By default, this class uses no-op implementations for all members unless overridden in a subclass.
Functions
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.