You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building custom collector that imports exporter/prometheusremotewriteexporter fails on Go 1.21
Steps to Reproduce
Import exporter/prometheusremotewriteexporter v0.88 while building on Go 1.21.x
Expected Result
Successful compilation
Actual Result
Compilation fails with this error
../go/pkg/mod/github.com/prometheus/prometheus@v0.47.2/model/labels/labels.go:365:23: type func(a Label, b Label) bool of func(a, b Label) bool {…} does not match inferred type func(a Label, b Label) int for func(a E, b E) int
I opened an issue in the prometheus repo here and it looks like it was fixed in the version v0.48.0. I guess you need to upgrade the dependency version in order to compile on Go 1.21.
Collector version
v0.88
Environment information
Environment
Exporter v0.88
Go v1.21.x
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
The collector runs dependency updates every Wednesday for this component. So once the relevant Prometheus releases are no longer considered Pre-release, we'll include them in the collector.
I'm going to close this issue since there isn't any action item here, but feel free to let us know if anything doesn't make sense!
In addition to what @crobert-1 has said about picking up the newer Prometheus library versions when they are released, I'll also note that the collector contrib v0.88.0 release was built with Go 1.21.3. If you encounter recurrence of this failure after the Prometheus dependency is updated please provide a minimal reproduction so that we can further investigate the issue.
Component(s)
No response
What happened?
Description
Building custom collector that imports
exporter/prometheusremotewriteexporter
fails on Go 1.21Steps to Reproduce
Import
exporter/prometheusremotewriteexporter
v0.88 while building on Go 1.21.xExpected Result
Successful compilation
Actual Result
Compilation fails with this error
I opened an issue in the prometheus repo here and it looks like it was fixed in the version v0.48.0. I guess you need to upgrade the dependency version in order to compile on Go 1.21.
Collector version
v0.88
Environment information
Environment
Exporter v0.88
Go v1.21.x
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: