We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 452638f commit 92868f4Copy full SHA for 92868f4
pkg/metrics/otel.go
@@ -56,7 +56,7 @@ func recordCommandUsage(ctx context.Context, provider *metric.MeterProvider, fla
56
m.WithUnit("1"),
57
m.WithDescription("Usage frequency of command flags"))
58
59
- var attributes []attribute.KeyValue
+ attributes := make([]attribute.KeyValue, len(flags))
60
for i, f := range flags {
61
if i == 0 {
62
attributes[0] = attribute.String("command", f)
0 commit comments