1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Update OpenTelemetry to 0.17.0 and fix "undefined: otel.Meter"

This commit is contained in:
alijozi
2021-02-16 11:38:55 +01:00
parent 8d9ebc8459
commit 1f32092a3b
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@ package internal
import (
"context"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/metric/global"
)
var (
@ -21,7 +21,7 @@ func init() {
}
}()
meter := metric.Must(otel.Meter("github.com/go-redis/redis"))
meter := metric.Must(global.Meter("github.com/go-redis/redis"))
WritesCounter = meter.NewInt64Counter("redis.writes",
metric.WithDescription("the number of writes initiated"),