Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

update README with non-deprecated promhttp Handler #21

Merged
merged 1 commit into from
Aug 26, 2017

Conversation

drausin
Copy link
Contributor

@drausin drausin commented Jul 9, 2017

The http.Handler() is deprecated per golang client http.go comment:

// Deprecated: Please note the issues described in the doc comment of
// InstrumentHandler. You might want to consider using promhttp.Handler instead
// (which is not instrumented, but can be instrumented with the tooling provided
// in package promhttp).

Update README to recommend non-deprecated Handler from promhttp.

The `http.Handler()` is deprecated per [golang client http.go comment](https://github.com/prometheus/client_golang/blob/master/prometheus/http.go#L63-L66):
```
// Deprecated: Please note the issues described in the doc comment of
// InstrumentHandler. You might want to consider using promhttp.Handler instead
// (which is not instrumented, but can be instrumented with the tooling provided
// in package promhttp).
```
Update README to recommend non-deprecated [Handler from promhttp](https://github.com/prometheus/client_golang/blob/master/prometheus/promhttp/http.go#L77).
@codecov-io
Copy link

codecov-io commented Jul 9, 2017

Codecov Report

Merging #21 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #21   +/-   ##
=======================================
  Coverage   82.66%   82.66%           
=======================================
  Files           7        7           
  Lines         248      248           
=======================================
  Hits          205      205           
  Misses         35       35           
  Partials        8        8

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c1b191...254d210. Read the comment docs.

@mwitkow mwitkow merged commit 0dafe0d into grpc-ecosystem:master Aug 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants