lukecwik commented on a change in pull request #11231: [BEAM-4374] Shortids for 
the Go SDK
URL: https://github.com/apache/beam/pull/11231#discussion_r398948198
 
 

 ##########
 File path: sdks/go/pkg/beam/core/runtime/harness/monitoring.go
 ##########
 @@ -16,20 +16,165 @@
 package harness
 
 import (
+       "bytes"
+       "strconv"
+       "sync"
+       "sync/atomic"
        "time"
 
+       "github.com/apache/beam/sdks/go/pkg/beam/core/graph/coder"
+       "github.com/apache/beam/sdks/go/pkg/beam/core/graph/mtime"
        "github.com/apache/beam/sdks/go/pkg/beam/core/metrics"
        "github.com/apache/beam/sdks/go/pkg/beam/core/runtime/exec"
        fnpb "github.com/apache/beam/sdks/go/pkg/beam/model/fnexecution_v1"
        ppb "github.com/apache/beam/sdks/go/pkg/beam/model/pipeline_v1"
        "github.com/golang/protobuf/ptypes"
 )
 
-func monitoring(p *exec.Plan) (*fnpb.Metrics, []*ppb.MonitoringInfo) {
+type mUrn uint32
+type mType uint32
+
+// TODO: Pull these from the protos.
+var sUrns = []string{
+       "beam:metric:user:v1",
 
 Review comment:
   heads up that this has now been exploded so that each MonitoringInfoSpec has 
a unique urn meaning that you'll see:
   beam:metric:user:sum_int64:v1, beam:metric:user:sum_double:v1, ...

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to