This commit is contained in:
Stephane Nicoll 2020-05-13 15:39:44 +02:00
parent a03426af57
commit 23c5549832

View File

@ -59,11 +59,11 @@ public class KafkaMetricsAutoConfiguration {
}
private <K, V> void addListener(DefaultKafkaConsumerFactory<K, V> factory, MeterRegistry meterRegistry) {
factory.addListener(new MicrometerConsumerListener<K, V>(meterRegistry));
factory.addListener(new MicrometerConsumerListener<>(meterRegistry));
}
private <K, V> void addListener(DefaultKafkaProducerFactory<K, V> factory, MeterRegistry meterRegistry) {
factory.addListener(new MicrometerProducerListener<K, V>(meterRegistry));
factory.addListener(new MicrometerProducerListener<>(meterRegistry));
}
}