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

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

                Author: ASF GitHub Bot
            Created on: 09/Aug/21 17:42
            Start Date: 09/Aug/21 17:42
    Worklog Time Spent: 10m 
      Work Description: lostluck commented on a change in pull request #15289:
URL: https://github.com/apache/beam/pull/15289#discussion_r685395050



##########
File path: sdks/go/pkg/beam/core/runtime/exec/pcollection.go
##########
@@ -0,0 +1,153 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.  See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.  You may obtain a copy of the License at
+//
+//    http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package exec
+
+import (
+       "context"
+       "fmt"
+       "math"
+       "math/rand"
+       "sync"
+       "sync/atomic"
+
+       "github.com/apache/beam/sdks/go/pkg/beam/core/graph/coder"
+)
+
+// PCollection is a passthrough node to collect PCollection metrics, and
+// must be placed as the Out node of any producer of a PCollection.
+//
+// In particular, must not be placed after a Multiplex, and must be placed
+// after a Flatten.
+type PCollection struct {

Review comment:
       IIRC, either I'm adding an object or duplicating all the code. Right now 
this was simplest, vs modifying each of the other node kinds.
   
   The main optimization I can do later is concretely make the Out nodes the 
PCollection type which will help the compiler inline the method calls avoiding 
the function call overhead where possible.




-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

    Worklog Id:     (was: 635982)
    Time Spent: 3h 20m  (was: 3h 10m)

> "elements added" for input and output collections is always empty
> -----------------------------------------------------------------
>
>                 Key: BEAM-6374
>                 URL: https://issues.apache.org/jira/browse/BEAM-6374
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-dataflow, sdk-go
>            Reporter: Andrew Brampton
>            Priority: P3
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> The field for "Elements added" and "Estimated size" is always blank when 
> running a Go binary on Dataflow. For example when running the work count 
> example: https://pasteboard.co/HVf80BU.png



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to