Abacn commented on code in PR #33043:
URL: https://github.com/apache/beam/pull/33043#discussion_r1857443292


##########
runners/core-java/src/main/java/org/apache/beam/runners/core/metrics/MetricUpdates.java:
##########
@@ -66,21 +68,30 @@ public static <T> MetricUpdate<T> create(MetricKey key, T 
update) {
   /** All the sets updates. */
   public abstract Iterable<MetricUpdate<StringSetData>> stringSetUpdates();
 
+  /** All the histogram updates. */
+  public abstract Iterable<MetricUpdate<HistogramData>> 
perWorkerHistogramsUpdates();
+
   /** Create a new {@link MetricUpdates} bundle. */
   public static MetricUpdates create(
       Iterable<MetricUpdate<Long>> counterUpdates,
       Iterable<MetricUpdate<DistributionData>> distributionUpdates,
       Iterable<MetricUpdate<GaugeData>> gaugeUpdates,
-      Iterable<MetricUpdate<StringSetData>> stringSetUpdates) {
+      Iterable<MetricUpdate<StringSetData>> stringSetUpdates,
+      Iterable<MetricUpdate<HistogramData>> perWorkerHistogramsUpdates) {

Review Comment:
   Other metrics aren't "perWorker" but this one does which sounds strange to 
me.
   
   I would assume this MetricUpdates.create is created on bundle basis, 
corresponds to each MetricsContainer. If we insert a per-worker metrics here 
would it be reported multiple times by different bundles for the same worker?



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

Reply via email to