track

inline suspend fun <T> Gauge.track(block: () -> T): T

Increments the unlabeled gauge while the block is running, and decrements it when the block completes.

This is useful for tracking concurrency or in-flight tasks.


inline suspend fun <T> Gauge.Child.track(block: () -> T): T

Increments the labeled gauge while the block is running, and decrements it when the block completes.

This is useful for tracking concurrency or in-flight tasks by label.