1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-01 16:06:54 +03:00

chore: update import path

This commit is contained in:
Vladimir Mihailenco
2023-01-23 08:48:54 +02:00
parent 5ca5740d51
commit 97b491aace
90 changed files with 442 additions and 748 deletions

View File

@ -12,12 +12,12 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.10.0"
"go.opentelemetry.io/otel/trace"
"github.com/go-redis/redis/extra/rediscmd/v9"
"github.com/go-redis/redis/v9"
"github.com/redis/go-redis/extra/rediscmd/v9"
"github.com/redis/go-redis/v9"
)
const (
instrumName = "github.com/go-redis/redis/extra/redisotel"
instrumName = "github.com/redis/go-redis/extra/redisotel"
)
func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error {
@ -109,7 +109,7 @@ func (th *tracingHook) ProcessHook(hook redis.ProcessHook) redis.ProcessHook {
return hook(ctx, cmd)
}
fn, file, line := funcFileLine("github.com/go-redis/redis")
fn, file, line := funcFileLine("github.com/redis/go-redis")
attrs := make([]attribute.KeyValue, 0, 8)
attrs = append(attrs,
@ -145,7 +145,7 @@ func (th *tracingHook) ProcessPipelineHook(
return hook(ctx, cmds)
}
fn, file, line := funcFileLine("github.com/go-redis/redis")
fn, file, line := funcFileLine("github.com/redis/go-redis")
attrs := make([]attribute.KeyValue, 0, 8)
attrs = append(attrs,