zentol opened a new pull request #9870: [FLINK-14350][metrics] Introduce dedicated MetricScope URL: https://github.com/apache/flink/pull/9870 Based on #9869. Introduces a MetricScope interface for scope-related operations, and refactors the currently exposed methods (getMetricIdentifier, getAllVariables) from the MetricGroup to this interface. For backwards-compatibility the MetricScope can be accessed from the MetricGroup. Subsumed methods in the MetricGroup interface were deprecated but are still functional. The goal here is to split the interface since the existing methods form 2 distinct sets used for separate purposes. New notify methods were added to the MetricReporter interface, that differ from the existing ones in that they accept a MetricScope instead of a MetricGroup, as the additonal methods of the latter shouldn't even be used. Reporters relying on now deprecated methods have been updated, except for the JMX, Prometheus and InfluxDB reporters as they still rely on internal APIs for accessing the logical scope. Existing custom reporters should not be affected.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
