fs2.kafka.consumer.KafkaMetrics.scala Maven / Gradle / Ivy
/*
* Copyright 2018-2024 OVO Energy Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
package fs2.kafka.consumer
import org.apache.kafka.common.{Metric, MetricName}
trait KafkaMetrics[F[_]] {
/**
* Returns consumer metrics.
*
* @see
* org.apache.kafka.clients.consumer.KafkaConsumer#metrics
*/
def metrics: F[Map[MetricName, Metric]]
}