zentol commented on a change in pull request #19263: URL: https://github.com/apache/flink/pull/19263#discussion_r838807310
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java ########## @@ -380,6 +382,12 @@ public void register(Metric metric, String metricName, AbstractMetricGroup group LOG.warn( "Cannot register metric, because the MetricRegistry has already been shut down."); } else { + if (LOG.isDebugEnabled()) { + LOG.debug( + "Registering metric {}.{}.", + group.getLogicalScope(CharacterFilter.NO_OP_FILTER), + metricName); + } Review comment: it is relatively expensive and permanently increases the memory footprint. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org