Update changelog

This commit is contained in:
Vladimir Mihailenco 2020-09-05 17:39:26 +03:00
parent ef220d0944
commit df7fe4e2ce
2 changed files with 13 additions and 11 deletions

View File

@ -1,15 +1,20 @@
# Changelog # Changelog
> :heart: [**Uptrace.dev** - distributed traces, logs, and errors in one place](https://uptrace.dev)
## v8 (unreleased) ## v8 (unreleased)
- All commands require `context.Context` as a first argument, e.g. `rdb.Ping(ctx)`. If you are not - All commands require `context.Context` as a first argument, e.g. `rdb.Ping(ctx)`. If you are not
using `context.Context` yet, the simplest option is to define package variable using `context.Context` yet, the simplest option is to define global package variable
`var ctx = context.TODO()` and use it when `ctx` is expected. `var ctx = context.TODO()` and use it when `ctx` is required.
- Ring uses Rendezvous Hashing by default which provides better distribution. This means that
existing keys must be moved to a new location or key will be inaccessible / lost. To use old
hashing scheme:
- `Cluster.ForEachNode` is renamed to `ForEachShard` for consistency with `Ring`. - `Cluster.ForEachNode` is renamed to `ForEachShard` for consistency with `Ring`.
- Added `redisext.OpenTemetryHook` that adds
[Redis OpenTelemetry instrumentation](https://redis.uptrace.dev/tracing/).
- Ring uses Rendezvous Hashing by default which provides better distribution. You need to move
existing keys to a new location or keys will be inaccessible / lost. To use old hashing scheme:
```go ```go
import "github.com/golang/groupcache/consistenthash" import "github.com/golang/groupcache/consistenthash"
@ -20,9 +25,6 @@ ring := redis.NewRing(&redis.RingOptions{
}) })
``` ```
- Added `redisext.OpenTemetryHook` that adds
[Redis OpenTelemetry instrumentation](https://redis.uptrace.dev/tracing/).
## v7.3 ## v7.3
- New option `Options.Username` which causes client to use `AuthACL`. Be aware if your connection - New option `Options.Username` which causes client to use `AuthACL`. Be aware if your connection

View File

@ -26,6 +26,9 @@ type FailoverOptions struct {
// Sentinel password from "requirepass <password>" (if enabled) in Sentinel configuration // Sentinel password from "requirepass <password>" (if enabled) in Sentinel configuration
SentinelPassword string SentinelPassword string
// Enables read-only commands on slave nodes.
ReadOnly bool
// Following options are copied from Options struct. // Following options are copied from Options struct.
Dialer func(ctx context.Context, network, addr string) (net.Conn, error) Dialer func(ctx context.Context, network, addr string) (net.Conn, error)
@ -51,9 +54,6 @@ type FailoverOptions struct {
IdleCheckFrequency time.Duration IdleCheckFrequency time.Duration
TLSConfig *tls.Config TLSConfig *tls.Config
// Enables read-only commands on slave nodes.
ReadOnly bool
} }
func (opt *FailoverOptions) options() *Options { func (opt *FailoverOptions) options() *Options {