Skip to content

Commit

Permalink
fix(traceql): do not return empty intrinsic names
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed May 23, 2024
1 parent 36bd388 commit c377a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/traceql/attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const (
)

var intrinsicNames = func() (r []string) {
r = make([]string, TraceDuration)
r = make([]string, 0, TraceDuration)
for i := SpanDuration; i <= TraceDuration; i++ {
r = append(r, Attribute{Prop: i}.String())
}
Expand Down

0 comments on commit c377a6c

Please sign in to comment.