For actions with no package, the title "Executing action" is extremely
vague. Add the action mode so that there is some differentiation.
Change-Id: If6dcf81c7cd1f19a9532e56dd9f88abd1182ea97
Reviewed-on: https://go-review.googlesource.com/c/go/+/567936
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
var err error
if a.Actor != nil && (!a.Failed || a.IgnoreFail) {
// TODO(matloob): Better action descriptions
- desc := "Executing action "
+ desc := "Executing action (" + a.Mode
if a.Package != nil {
- desc += "(" + a.Mode + " " + a.Package.Desc() + ")"
+ desc += " " + a.Package.Desc()
}
+ desc += ")"
ctx, span := trace.StartSpan(ctx, desc)
a.traceSpan = span
for _, d := range a.Deps {