finefuture commented on code in PR #12389: URL: https://github.com/apache/dubbo/pull/12389#discussion_r1202331675
########## dubbo-metrics/dubbo-metrics-default/src/main/java/org/apache/dubbo/metrics/filter/MetricsFilter.java: ########## @@ -40,20 +41,24 @@ public class MetricsFilter implements Filter, BaseFilter.Listener, ScopeModelAware { private ApplicationModel applicationModel; - private final static ErrorTypeAwareLogger LOGGER = LoggerFactory.getErrorTypeAwareLogger(MetricsFilter.class); + private static final ErrorTypeAwareLogger LOGGER = LoggerFactory.getErrorTypeAwareLogger(MetricsFilter.class); + private boolean metricsEnable; @Override public void setApplicationModel(ApplicationModel applicationModel) { this.applicationModel = applicationModel; + this.metricsEnable = applicationModel.getApplicationConfigManager().getMetrics().map(MetricsConfig::getEnabled).orElse(false); Review Comment: Fixed, i think we need add some tips on user page, like : dubbo.metrics.enabled = true to use default metrics -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org