Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not compile with newest github.com/prometheus/client_golang/prometheus #33

Closed
laodouya opened this issue Dec 26, 2017 · 8 comments

Comments

@laodouya
Copy link

# github.com/uber/jaeger-lib/metrics/prometheus ../../../github.com/uber/jaeger-lib/metrics/prometheus/factory.go:143:12: cannot use hv.WithLabelValues(f.tagsAsLabelValues(labelNames, tags)...) (type prometheus.Observer) as type prometheus.Histogram in field value: prometheus.Observer does not implement prometheus.Histogram (missing Collect method)

@laodouya
Copy link
Author

It seems this project still use 0.8.0(a year and four months ago) version of github.com/prometheus/client_golang/prometheus

@black-adder
Copy link
Contributor

This repo depends on https://github.com/uber-go/tally which has pinned the older version of prometheus. Once uber-go/tally#42 is resolved, we can go ahead and support newer versions of prometheus, however we'd still somehow have to maintain backwards compatibility.

@yurishkuro
Copy link
Member

0.8.0 is the latest official release (https://github.com/prometheus/client_golang/releases), so I don't see a problem here.

@painhardcore
Copy link

Same here:

vendor/github.com/uber/jaeger-lib/metrics/prometheus/factory.go:143:12: cannot use hv.WithLabelValues(f.tagsAsLabelValues(labelNames, tags)...) (type prometheus.Observer) as type prometheus.Histogram in field value:
        prometheus.Observer does not implement prometheus.Histogram (missing Collect method)

I'm using
[[constraint]]
branch = "master"
name = "github.com/prometheus/client_golang"

@nickjackson
Copy link

nickjackson commented Feb 14, 2018

@beorn7 mentions over here that they "aim to keep tip of master branch always stable" as appose to relying on tags while its still pre v1.

I guess this is just one of those awkward stages where different people (rightly) have differing ideas about how and when to release software.

@beorn7
Copy link

beorn7 commented Feb 14, 2018

More explanation about the tagging/releasing/stable state of prometheus/client_golang has been added to the README.md here: https://github.com/prometheus/client_golang#important-note-about-releases-versioning-tagging-stability-and-your-favorite-go-dependency-management-tool

@pavelnikolov
Copy link
Contributor

pavelnikolov commented Mar 22, 2018

#42 solved this issue

@yurishkuro
Copy link
Member

Thanks @pavelnikolov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants