diff --git a/extra/redisotel/metrics.go b/extra/redisotel/metrics.go index 915838f34..4bdc33f51 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...))