diff --git a/config/redis/command.go b/config/redis/command.go index 63a7454..28f0415 100644 --- a/config/redis/command.go +++ b/config/redis/command.go @@ -47,11 +47,13 @@ func (r redisConn) Do(commandName string, args ...interface{}) (interface{}, err if r.span != nil { ext.SamplingPriority.Set(r.span, 1) r.span.SetTag("error", true) + r.span.LogKV("error", err.Error()) } return nil, err } if r.span != nil { - r.span.LogKV("value", replay) + value, _ := redis.String(replay, nil) + r.span.LogKV("cmd", commandName, "args", args, "value", value) } return replay, nil }