[ 
https://issues.apache.org/jira/browse/BEAM-6138?focusedWorklogId=193584&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-193584
 ]

ASF GitHub Bot logged work on BEAM-6138:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Feb/19 00:35
            Start Date: 02/Feb/19 00:35
    Worklog Time Spent: 10m 
      Work Description: ajamato commented on pull request #7624: [BEAM-6138] 
Set the PTransform name on Java SDK User counters
URL: https://github.com/apache/beam/pull/7624#discussion_r253204741
 
 

 ##########
 File path: 
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/data/ElementCountFnDataReceiver.java
 ##########
 @@ -35,20 +39,30 @@
 
   private FnDataReceiver<WindowedValue<T>> original;
   private Counter counter;
+  private MetricsContainer unboundMetricContainer;
 
-  public ElementCountFnDataReceiver(FnDataReceiver<WindowedValue<T>> original, 
String pCollection) {
+  public ElementCountFnDataReceiver(
+      FnDataReceiver<WindowedValue<T>> original,
+      String pCollection,
+      MetricsContainerStepMap metricContainerRegistry) {
     this.original = original;
     HashMap<String, String> labels = new HashMap<String, String>();
     labels.put(SimpleMonitoringInfoBuilder.PCOLLECTION_LABEL, pCollection);
     MonitoringInfoMetricName metricName =
         
MonitoringInfoMetricName.named(SimpleMonitoringInfoBuilder.ELEMENT_COUNT_URN, 
labels);
     this.counter = LabeledMetrics.counter(metricName);
+    // Place it in a metric container which is not bound to the step name.
 
 Review comment:
   Updated the comment
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 193584)
    Time Spent: 7h 20m  (was: 7h 10m)

> Add User Metric Support to Java SDK
> -----------------------------------
>
>                 Key: BEAM-6138
>                 URL: https://issues.apache.org/jira/browse/BEAM-6138
>             Project: Beam
>          Issue Type: New Feature
>          Components: java-fn-execution
>            Reporter: Alex Amato
>            Assignee: Alex Amato
>            Priority: Major
>          Time Spent: 7h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to