1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Tweak otel span and attr names

This commit is contained in:
Vladimir Mihailenco
2020-11-15 14:30:27 +02:00
parent fa2e0da4e8
commit 13782c03d0
5 changed files with 11 additions and 12 deletions

View File

@ -11,7 +11,7 @@ import (
)
func Sleep(ctx context.Context, dur time.Duration) error {
return WithSpan(ctx, "sleep", func(ctx context.Context, span trace.Span) error {
return WithSpan(ctx, "time.Sleep", func(ctx context.Context, span trace.Span) error {
t := time.NewTimer(dur)
defer t.Stop()