We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d145d commit 3ecadf5Copy full SHA for 3ecadf5
extra/redisotel/redisotel.go
@@ -14,8 +14,7 @@ import (
14
)
15
16
const (
17
- // todo: consider using the full module path "github.com/go-redis/redis/extra/redisotel"
18
- defaultTracerName = "github.com/go-redis/redis"
+ defaultTracerName = "github.com/go-redis/redis/extra/redisotel"
19
20
21
type TracingHook struct {
@@ -32,8 +31,7 @@ func NewTracingHook(opts ...Option) *TracingHook {
32
31
33
tracer := cfg.tp.Tracer(
34
defaultTracerName,
35
- // todo: consider adding a version
36
- // trace.WithInstrumentationVersion("semver:8.11.4"),
+ trace.WithInstrumentationVersion("semver:"+redis.Version()),
37
38
return &TracingHook{tracer: tracer}
39
}
0 commit comments