opencensus-go-exporter-stackdriver
opencensus-go-exporter-stackdriver copied to clipboard
Error while updating imports: cannot find module providing package github.com/prometheus/prometheus/model/value
Please answer these questions before submitting a bug report.
What version of the Exporter are you using?
v0.13.14
What version of OpenCensus are you using?
Haven't gotten there yet
What version of Go are you using?
1.20.1
What did you do?
If possible, provide a recipe for reproducing the error.
My go.mod had contrib.go.opencensus.io/exporter/stackdriver at v0.13.12, and I wanted to update it to v0.13.14.
I was updating the import with the following:
$ go get -u contrib.go.opencensus.io/exporter/stackdriver
What did you expect to see?
The import update should work without error
What did you see instead?
I got this error:
contrib.go.opencensus.io/exporter/stackdriver imports
github.com/prometheus/prometheus/model/value: cannot find module providing package github.com/prometheus/prometheus/model/value
Then the version failed to be updated.
Additional context
Add any other context about the problem here.
You will also need to update your prometheus dependency to match what opencensus uses, as prometheus moved some packages around.
go get github.com/prometheus/[email protected]