Skip to content

Commit 3ecadf5

Browse files
authored
chore: instrumentation name and version (#2012)
1 parent e2d145d commit 3ecadf5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

extra/redisotel/redisotel.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import (
1414
)
1515

1616
const (
17-
// todo: consider using the full module path "github.com/go-redis/redis/extra/redisotel"
18-
defaultTracerName = "github.com/go-redis/redis"
17+
defaultTracerName = "github.com/go-redis/redis/extra/redisotel"
1918
)
2019

2120
type TracingHook struct {
@@ -32,8 +31,7 @@ func NewTracingHook(opts ...Option) *TracingHook {
3231

3332
tracer := cfg.tp.Tracer(
3433
defaultTracerName,
35-
// todo: consider adding a version
36-
// trace.WithInstrumentationVersion("semver:8.11.4"),
34+
trace.WithInstrumentationVersion("semver:"+redis.Version()),
3735
)
3836
return &TracingHook{tracer: tracer}
3937
}

0 commit comments

Comments
 (0)