Child
Represents a labeled child of the counter metric.
Use this to operate on a specific label set:
counter.labels("GET").inc()Content copied to clipboard
Functions
Link copied to clipboard
suspend fun <T> Counter.Child.countExceptions(vararg exceptionTypes: KClass<out Throwable>, block: () -> T): T?
Executes the given block and increments the counter if an exception of the specified types is thrown.