Child

inner class Child

Represents a labeled child of the summary metric.

Use this to operate on a specific label set:

summary.labels("GET").startTimer().observeDuration()

Constructors

Link copied to clipboard
constructor(quantiles: List<Quantiles.Quantile>)

Functions

Link copied to clipboard

Returns the current value of the summary as a ValueSummary object.

Link copied to clipboard
suspend fun observe(value: Double)

Observes a value and updates the summary metrics accordingly. This method is thread-safe and can be called concurrently.

Link copied to clipboard
Link copied to clipboard
suspend fun time(runnable: Runnable): Double