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

Build prometheus.Histogram instead of Observer #26

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

colega
Copy link
Contributor

@colega colega commented Jan 9, 2020

The unprecise usage of prometheus.Observer instead of prometheus.Histogram may be misleading, since both Histogram and Summary interfaces embed the Observer interface.

This is a breaking change since previous code won't compile with this version, so there's no better moment (except for v2) for doing this than going v1.

Solves https://github.com/cabify/gotoprom/issues/21 although without offering a backwards compatible mechanism because of how packages are loaded and initialized.

@colega colega requested a review from mapno January 9, 2020 12:18
The unprecise usage of `prometheus.Observer` instead of
`prometheus.Histogram` may be misleading, since both `Histogram` and
`Summary` interfaces embed the `Observer` interface.

This is a breaking change since previous code won't compile with this
version, so there's no better moment (except for v2) for doing this than
going v1.
@colega colega force-pushed the colega/build-histogram-instead-of-observer branch from be76c49 to 94d7258 Compare January 9, 2020 12:19
@colega colega removed the request for review from mapno January 9, 2020 12:40
@colega colega merged commit 91f2817 into master Jan 9, 2020
@colega colega deleted the colega/build-histogram-instead-of-observer branch January 9, 2020 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants