Skip to content

Commit 26e8d1c

Browse files
committed
tracingpb: fix tag group formatting
This fixes trace entries that include literal %s: 0.049ms 0.002ms === operation:/cockroach.roachpb.Internal/Batch gid:11120 _verbose:1 node:1 span.kind:server request:ReverseScan(Exclusive,Unreplicated) [/Table/100/"378826c2b6399273",/Table/100/"805b55ddf1552ea3") %s-locksnum:1 %s-lockswait:-2562047h47m16.853592s It doesn't solve the unlikely value for lockswait. Epic: none Release note: None
1 parent 503eea9 commit 26e8d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/tracing/tracingpb/recording.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (r Recording) visitSpan(sp RecordedSpan, depth int) []traceLogData {
266266
for _, tg := range sp.TagGroups {
267267
var prefix redact.RedactableString
268268
if tg.Name != AnonymousTagGroupName {
269-
prefix = redact.Sprint("%s-", redact.SafeString(tg.Name))
269+
prefix = redact.Sprintf("%s-", redact.SafeString(tg.Name))
270270
}
271271
for _, tag := range tg.Tags {
272272
sb.Printf(" %s%s:%s", prefix, redact.SafeString(tag.Key), tag.Value)

0 commit comments

Comments
 (0)