jolshan commented on code in PR #12121: URL: https://github.com/apache/kafka/pull/12121#discussion_r867226487
########## clients/src/main/java/org/apache/kafka/common/metrics/Metrics.java: ########## @@ -563,10 +615,15 @@ public synchronized void removeReporter(MetricsReporter reporter) { } } - synchronized void registerMetric(KafkaMetric metric) { + synchronized void registerMetric(KafkaMetric metric, boolean raiseIfMetricExists) { Review Comment: Would it be useful to know if the metric is created vs. already existed? -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org