gianm commented on code in PR #19525:
URL: https://github.com/apache/druid/pull/19525#discussion_r3319423593


##########
extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaConsumerMonitor.java:
##########
@@ -137,12 +136,23 @@ public class KafkaConsumerMonitor extends AbstractMonitor
       ).collect(Collectors.toMap(KafkaConsumerMetric::getKafkaMetricName, 
Function.identity()));
 
   private final KafkaConsumer<?, ?> consumer;
+
+  /**
+   * Supplies a new metric builder for each emitted metric.
+   */
+  @Nullable
+  private final Supplier<ServiceMetricEvent.Builder> metricBuilderSupplier;
+
   private final Map<MetricName, AtomicLong> counters = new HashMap<>();
   private final AtomicDouble pollIdleRatioAvg = new AtomicDouble(1.0d);
 
-  public KafkaConsumerMonitor(final KafkaConsumer<?, ?> consumer)
+  public KafkaConsumerMonitor(

Review Comment:
   It's essentially an internal utility, so it's fine to modify the 
constructors.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to