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

Un-export prometheus.LabelPairSorter #453

Merged
merged 1 commit into from
Sep 3, 2018
Merged

Un-export prometheus.LabelPairSorter #453

merged 1 commit into from
Sep 3, 2018

Conversation

beorn7
Copy link
Member

@beorn7 beorn7 commented Sep 3, 2018

The only known external usage of it was in prometheus/pushgateway,
where it was removed by
prometheus/pushgateway#200 .

Originally, the expectation was that users would implement the Metric
interface now and then. As we know now, neither it is happening, nor
would it make a lot of sense. (Users implement the Collector interface
instead.) By now, LabelPairSorter is essentially noise in the already
quite cluttered namespace in the prometheus package.

Signed-off-by: beorn7 beorn@soundcloud.com

The only known external usage of it was in prometheus/pushgateway,
where it was removed by
prometheus/pushgateway#200 .

Originally, the expectation was that users would implement the Metric
interface now and then. As we know now, neither it is happening, nor
would it make a lot of sense. (Users implement the Collector interface
instead.) By now, LabelPairSorter is essentially noise in the already
quite cluttered namespace in the prometheus package.

Signed-off-by: beorn7 <beorn@soundcloud.com>
@beorn7 beorn7 requested a review from grobie September 3, 2018 14:26
@beorn7 beorn7 merged commit d968d22 into master Sep 3, 2018
@beorn7 beorn7 deleted the beorn7/deprecation branch September 3, 2018 15:41
@aledbf
Copy link

aledbf commented Sep 22, 2018

@beorn7
Copy link
Member Author

beorn7 commented Sep 22, 2018

Hmm, the Sourcegraph search doesn't seem to have good coverage...
There are two options now:

  1. Use the very similar testutil package we have now here in client_golang.
  2. It's just very trivial boilerplate code, so you could simply replicate it as I did for the Pushgateway.

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

Successfully merging this pull request may close these issues.

None yet

3 participants