metrics

suspend fun metrics(): Result<Metrics>(source)

Retrieves metrics for the current queue managed by the consumer.

Return

A Result containing a Metrics object with detailed metrics of the queue. The result may contain an error if metrics retrieval fails or is inconsistent.