mytang0 commented on code in PR #11493:
URL: https://github.com/apache/dubbo/pull/11493#discussion_r1102518878
##########
dubbo-metrics/dubbo-metrics-api/src/main/java/org/apache/dubbo/metrics/listener/MetricsListener.java:
##########
@@ -17,17 +17,24 @@
package org.apache.dubbo.metrics.listener;
+import org.apache.dubbo.common.extension.SPI;
import org.apache.dubbo.metrics.event.MetricsEvent;
/**
* Metrics Listener.
*/
-public interface MetricsListener {
+@SPI
+public interface MetricsListener<E extends MetricsEvent<?>> {
+
+ default boolean isSupport(MetricsEvent<?> event) {
Review Comment:
Please add a comment.
--
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]