mirror of https://github.com/go-redis/redis.git
Merge 7b8b3a603d
into f1ffb55c9a
This commit is contained in:
commit
60a5ae1090
|
@ -216,6 +216,7 @@ func (mh *metricsHook) ProcessHook(hook redis.ProcessHook) redis.ProcessHook {
|
||||||
attrs = append(attrs, mh.attrs...)
|
attrs = append(attrs, mh.attrs...)
|
||||||
attrs = append(attrs, attribute.String("type", "command"))
|
attrs = append(attrs, attribute.String("type", "command"))
|
||||||
attrs = append(attrs, statusAttr(err))
|
attrs = append(attrs, statusAttr(err))
|
||||||
|
attrs = append(attrs, attribute.String("cmd", cmd.FullName()))
|
||||||
|
|
||||||
mh.useTime.Record(ctx, milliseconds(dur), metric.WithAttributes(attrs...))
|
mh.useTime.Record(ctx, milliseconds(dur), metric.WithAttributes(attrs...))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue