Skip to content

Commit

Permalink
Merge pull request redis#1665 from 0xc0d/master
Browse files Browse the repository at this point in the history
Update OpenTelemetry to 0.17.0 and fix "undefined: otel.Meter"
  • Loading branch information
vmihailenco authored Feb 17, 2021
2 parents 8d9ebc8 + 1f32092 commit 9467d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ require (
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
github.com/onsi/ginkgo v1.15.0
github.com/onsi/gomega v1.10.5
go.opentelemetry.io/otel v0.16.0
go.opentelemetry.io/otel v0.17.0
)
4 changes: 2 additions & 2 deletions internal/instruments.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package internal
import (
"context"

"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/metric/global"
)

var (
Expand All @@ -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"),
Expand Down

0 comments on commit 9467d56

Please sign in to comment.