From 879359e54548e99e7fc2f120702dd19d8b998049 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Mon, 20 Apr 2026 13:04:13 -0700 Subject: [PATCH] fix: use distinct names for the initial build+cycle otel events for run--watch --- pkg/aspect/run/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/aspect/run/run.go b/pkg/aspect/run/run.go index 34fcfaf0..d3611428 100644 --- a/pkg/aspect/run/run.go +++ b/pkg/aspect/run/run.go @@ -308,7 +308,7 @@ func (runner *Run) runWatch(ctx context.Context, bazelCmd []string, bzlCommandSt logger.Infof("initial --watch build: %v", initCmd.Args) - if err := runner.runCmd(initCtx, initCmd, "Run.Subscribe.Build"); err != nil { + if err := runner.runCmd(initCtx, initCmd, "Run.Init.Build"); err != nil { return nil, nil, fmt.Errorf("initial bazel command failed: %w", err) } @@ -392,7 +392,7 @@ func (runner *Run) runWatch(ctx context.Context, bazelCmd []string, bzlCommandSt } // Init() with the full runfiles list - cctx, initCycleTrace := runner.tracer.Start(initCtx, "Run.Cycle") + cctx, initCycleTrace := runner.tracer.Start(initCtx, "Run.Init.Cycle") defer func() { if retErr != nil { initCycleTrace.SetStatus(codes.Error, retErr.Error())