shunping commented on code in PR #36020:
URL: https://github.com/apache/beam/pull/36020#discussion_r2312105954


##########
sdks/go/pkg/beam/runners/prism/internal/stage.go:
##########
@@ -108,6 +108,19 @@ func clampTick(dur time.Duration) time.Duration {
        }
 }
 
+func (s *stage) LogValue() slog.Value {
+       var outAttrs []slog.Attr
+       for k, v := range s.OutputsToCoders {
+               outAttrs = append(outAttrs, slog.Any(k, v))
+       }
+       return slog.GroupValue(
+               slog.String("ID", s.ID),
+               slog.Any("transforms", s.transforms),
+               slog.Any("inputInfo", s.inputInfo),
+               slog.Any("outputInfo", outAttrs),

Review Comment:
   Done.



##########
sdks/go/pkg/beam/runners/prism/internal/execute.go:
##########
@@ -360,7 +360,11 @@ func executePipeline(ctx context.Context, wks 
map[string]*worker.W, j *jobservic
                case rb, ok := <-bundles:
                        if !ok {
                                err := eg.Wait()
-                               j.Logger.Debug("pipeline done!", 
slog.String("job", j.String()), slog.Any("error", err), slog.Any("topo", topo))
+                               var topoAttrs []slog.Attr
+                               for _, s := range topo {
+                                       topoAttrs = append(topoAttrs, 
slog.Any(s.ID, s))
+                               }
+                               j.Logger.Debug("pipeline done!", 
slog.String("job", j.String()), slog.Any("error", err), slog.Any("topo", 
topoAttrs))

Review Comment:
   Done.



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

Reply via email to