chore: instrumentation name and version (#2012)

This commit is contained in:
Nelz 2022-02-01 23:26:14 -08:00 committed by GitHub
parent e2d145d6ba
commit 3ecadf5f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -14,8 +14,7 @@ import (
) )
const ( const (
// todo: consider using the full module path "github.com/go-redis/redis/extra/redisotel" defaultTracerName = "github.com/go-redis/redis/extra/redisotel"
defaultTracerName = "github.com/go-redis/redis"
) )
type TracingHook struct { type TracingHook struct {
@ -32,8 +31,7 @@ func NewTracingHook(opts ...Option) *TracingHook {
tracer := cfg.tp.Tracer( tracer := cfg.tp.Tracer(
defaultTracerName, defaultTracerName,
// todo: consider adding a version trace.WithInstrumentationVersion("semver:"+redis.Version()),
// trace.WithInstrumentationVersion("semver:8.11.4"),
) )
return &TracingHook{tracer: tracer} return &TracingHook{tracer: tracer}
} }