apoorvmittal10 commented on code in PR #14575:
URL: https://github.com/apache/kafka/pull/14575#discussion_r1364645649


##########
clients/src/main/java/org/apache/kafka/common/metrics/MetricsReporter.java:
##########
@@ -24,13 +24,14 @@
 import org.apache.kafka.common.Reconfigurable;
 import org.apache.kafka.common.annotation.InterfaceStability;
 import org.apache.kafka.common.config.ConfigException;
+import org.apache.kafka.common.telemetry.ClientTelemetry;
 
 /**
  * A plugin interface to allow things to listen as new metrics are created so 
they can be reported.
  * <p>
  * Implement {@link org.apache.kafka.common.ClusterResourceListener} to 
receive cluster metadata once it's available. Please see the class 
documentation for ClusterResourceListener for more information.
  */
-public interface MetricsReporter extends Reconfigurable, AutoCloseable {
+public interface MetricsReporter extends Reconfigurable, AutoCloseable, 
ClientTelemetry {

Review Comment:
   I was in an impression that we want Future MetricsReporter to support either 
client or server side mapping. And that's why this change existed in v1 of the 
code as well.
   
   Looking at it again seems I am creating `fat interfaces` and doesn't make 
much sense to create common `ClientTelemetry` interface with optional client 
and server behaviour rather split them. And let the implementation of 
MetricsReporter decide which client or server side additional provider it wants 
to support. I ll change it.



-- 
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

Reply via email to