sachet icon indicating copy to clipboard operation
sachet copied to clipboard

Remove usage of deprecated handler

Open epels opened this issue 7 years ago • 0 comments

In cmd/sachet/main.go, the deprecated prometheus.Handler() is used.

See: https://godoc.org/github.com/prometheus/client_golang/prometheus#Handler

The docs suggest using promhttp.Handler instead, but that seems to behave slightly different from prometheus.Handler.

Some related discussions in other repos:

  • https://github.com/kubernetes/kubernetes/issues/48297
  • https://github.com/matrix-org/dendrite/issues/243

epels avatar Sep 28 '18 14:09 epels