zio.kafka.producer.metrics.ProducerMetricsObserver
See theProducerMetricsObserver companion object
trait ProducerMetricsObserver
Implementations of this trait are responsible for observing producer metrics and collect the measurements. The different methods are invoked from different places in the producer.
These methods hold up the producer; they should return quickly or else throughput of the producer will be affected.
Users can provide a custom implementation via zio.kafka.producer.ProducerSettings.withMetricsObserver.
WARNING: this is an UNSTABLE API and may change in an incompatible way without notice in any zio-kafka version.
Attributes
- Companion
- object
- Source
- ProducerMetricsObserver.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object NoOp
Members list
In this article