1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-25 00:01:00 +03:00

Update to otel v0.14

This commit is contained in:
Vladimir Mihailenco
2020-11-21 09:56:52 +02:00
parent 015c456597
commit 3921cd497c
14 changed files with 208 additions and 36 deletions

View File

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