-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Having upgraded from:
cloud.google.com/go/storage v1.46.0 -> cloud.google.com/go/storage v1.48.0, I get the following error:
<redacted>/go/pkg/mod/cloud.google.com/go/[email protected]/storage.go:264:25: undefined: stats.NewMetrics
This corresponds to:
google-cloud-go/storage/storage.go
Line 264 in d95c86d
| Metrics: stats.NewMetrics("grpc.client.attempt.duration"), |
... and I believe these two imports are in conflict:
google-cloud-go/storage/storage.go
Lines 56 to 57 in d95c86d
| "google.golang.org/grpc/experimental/stats" | |
| "google.golang.org/grpc/stats/opentelemetry" |
google-cloud-go/storage/go.mod
Lines 26 to 27 in d95c86d
| google.golang.org/grpc v1.67.2 | |
| google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a |
I suspect that somehow, this NewMetrics is getting shadowed by https://pkg.go.dev/google.golang.org/grpc/stats/[email protected] .
For a brief period, I was getting ambiguous import errors pointing at these two packages with go mod tidy. I'm no longer getting those errors, but I still fail to compile.