diff --git a/extra/redisotel/metrics.go b/extra/redisotel/metrics.go index 915838f3..4bdc33f5 100644 --- a/extra/redisotel/metrics.go +++ b/extra/redisotel/metrics.go @@ -216,6 +216,7 @@ func (mh *metricsHook) ProcessHook(hook redis.ProcessHook) redis.ProcessHook { attrs = append(attrs, mh.attrs...) attrs = append(attrs, attribute.String("type", "command")) attrs = append(attrs, statusAttr(err)) + attrs = append(attrs, attribute.String("cmd", cmd.FullName())) mh.useTime.Record(ctx, milliseconds(dur), metric.WithAttributes(attrs...))