scwhittle commented on code in PR #33503:
URL: https://github.com/apache/beam/pull/33503#discussion_r1986951687
##########
runners/core-java/src/main/java/org/apache/beam/runners/core/metrics/MonitoringInfoConstants.java:
##########
@@ -212,4 +214,12 @@ static String extractUrn(MonitoringInfoSpecs.Enum value) {
private static String extractLabel(MonitoringInfo.MonitoringInfoLabels
value) {
return
value.getValueDescriptor().getOptions().getExtension(labelProps).getName();
}
+
+ public static boolean isPerWorkerMetric(MetricName metricName) {
+ @Nullable String value = metricName.getLabels().get("PER_WORKER_METRIC");
Review Comment:
use the constant
--
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]