Interface IKafkaProducerStatisticsCallback
Declares the OnProducerStatistics(KafkaStatistics?, string, KafkaProducer) event handler.
Namespace: Silverback.Messaging.Broker.Callbacks
Assembly: Silverback.Integration.Kafka.dll
Syntax
public interface IKafkaProducerStatisticsCallback : IBrokerCallback
Methods
| Improve this doc View sourceOnProducerStatistics(KafkaStatistics?, string, KafkaProducer)
Called on statistics events.
Declaration
void OnProducerStatistics(KafkaStatistics? statistics, string rawStatistics, KafkaProducer producer)
Parameters
Type | Name | Description |
---|---|---|
KafkaStatistics | statistics | The deserialized statistics. |
string | rawStatistics | The raw statistics string. |
KafkaProducer | producer | The related producer instance. |
Remarks
You can enable statistics and set the statistics interval using the StatisticsIntervalMs
configuration property (disabled by default).