tillrohrmann commented on a change in pull request #10364: 
[FLINK-14993][metrics] FrontMetricGroup passes reporter-specific parameters
URL: https://github.com/apache/flink/pull/10364#discussion_r354945464
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java
 ##########
 @@ -145,7 +147,7 @@ public MetricRegistryImpl(MetricRegistryConfiguration 
config, Collection<Reporte
                                        } else {
                                                LOG.info("Reporting metrics for 
reporter {} of type {}.", namedReporter, className);
                                        }
-                                       reporters.add(reporterInstance);
+                                       reporters.add(new 
ReporterAndSettings(reporterInstance, new 
ReporterScopedSettings(reporters.size() - 1)));
 
 Review comment:
   nit: If we introduce a static factory method for `ReporterAndSettings`, then 
we have a single place where instances of this class are being instantiated.

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

Reply via email to