Merge pull request #2377 from redis/release/v9.0.1

Release/v9.0.1
This commit is contained in:
Vladimir Mihailenco 2023-01-30 10:25:03 +02:00 committed by GitHub
commit 7ee1282665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 19 additions and 42 deletions

View File

@ -1,3 +1,7 @@
## [9.0.1](https://github.com/redis/go-redis/compare/v9.0.0...v9.0.1) (2023-01-30)
## v9 2023-01-30
### Added

View File

@ -5,7 +5,7 @@ go 1.14
replace github.com/redis/go-redis/v9 => ../..
require (
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0

View File

@ -4,4 +4,4 @@ go 1.14
replace github.com/redis/go-redis/v9 => ../..
require github.com/redis/go-redis/v9 v9.0.0
require github.com/redis/go-redis/v9 v9.0.1

View File

@ -4,4 +4,4 @@ go 1.14
replace github.com/redis/go-redis/v9 => ../..
require github.com/redis/go-redis/v9 v9.0.0
require github.com/redis/go-redis/v9 v9.0.1

View File

@ -9,8 +9,8 @@ replace github.com/redis/go-redis/extra/redisotel/v9 => ../../extra/redisotel
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../../extra/rediscmd
require (
github.com/redis/go-redis/extra/redisotel/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/extra/redisotel/v9 v9.0.1
github.com/redis/go-redis/v9 v9.0.1
github.com/uptrace/uptrace-go v1.11.8
go.opentelemetry.io/otel v1.11.2
google.golang.org/genproto v0.0.0-20230127162408-596548ed4efa // indirect

View File

@ -4,4 +4,4 @@ go 1.14
replace github.com/redis/go-redis/v9 => ../..
require github.com/redis/go-redis/v9 v9.0.0
require github.com/redis/go-redis/v9 v9.0.1

View File

@ -6,5 +6,5 @@ replace github.com/redis/go-redis/v9 => ../..
require (
github.com/davecgh/go-spew v1.1.1
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
)

View File

@ -8,7 +8,7 @@ replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.1
github.com/redis/go-redis/v9 v9.0.1
go.opencensus.io v0.24.0
)

View File

@ -7,5 +7,5 @@ replace github.com/redis/go-redis/v9 => ../..
require (
github.com/bsm/ginkgo/v2 v2.5.0
github.com/bsm/gomega v1.20.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
)

View File

@ -4,7 +4,6 @@ import (
"testing"
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/ginkgo/v2/extensions/table"
. "github.com/bsm/gomega"
)

View File

@ -7,8 +7,8 @@ replace github.com/redis/go-redis/v9 => ../..
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
require (
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.1
github.com/redis/go-redis/v9 v9.0.1
go.opentelemetry.io/otel v1.11.2
go.opentelemetry.io/otel/metric v0.34.0
go.opentelemetry.io/otel/sdk v1.9.0

View File

@ -34,32 +34,6 @@ func TestNewWithTracerProvider(t *testing.T) {
}
}
func TestNewWithAttributes(t *testing.T) {
provider := sdktrace.NewTracerProvider()
hook := newTracingHook("", WithTracerProvider(provider), WithAttributes(semconv.NetPeerNameKey.String("localhost")))
ctx, span := provider.Tracer("redis-test").Start(context.TODO(), "redis-test")
cmd := redis.NewCmd(ctx, "ping")
defer span.End()
processHook := hook.ProcessHook(func(ctx context.Context, cmd redis.Cmder) error {
attrs := trace.SpanFromContext(ctx).(sdktrace.ReadOnlySpan).Attributes()
if !(attrs[0] == semconv.DBSystemRedis) {
t.Fatalf("expected attrs[0] to be semconv.DBSystemRedis, got: %v", attrs[0])
}
if !(attrs[1] == semconv.NetPeerNameKey.String("localhost")) {
t.Fatalf("expected attrs[1] to be semconv.NetPeerNameKey.String(\"localhost\"), got: %v", attrs[1])
}
if !(attrs[2] == semconv.DBStatementKey.String("ping")) {
t.Fatalf("expected attrs[2] to be semconv.DBStatementKey.String(\"ping\"), got: %v", attrs[2])
}
return nil
})
err := processHook(ctx, cmd)
if err != nil {
t.Fatal(err)
}
}
func TestWithDBStatement(t *testing.T) {
provider := sdktrace.NewTracerProvider()
hook := newTracingHook(

View File

@ -6,7 +6,7 @@ replace github.com/redis/go-redis/v9 => ../..
require (
github.com/prometheus/client_golang v1.14.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
)
require (

View File

@ -1,6 +1,6 @@
{
"name": "redis",
"version": "9.0.0",
"version": "9.0.1",
"main": "index.js",
"repository": "git@github.com:redis/go-redis.git",
"author": "Vladimir Mihailenco <vladimir.webdev@gmail.com>",

View File

@ -2,5 +2,5 @@ package redis
// Version is the current release version.
func Version() string {
return "9.0.0"
return "9.0.1"
}