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

Commit

Permalink
Test not exposing recorded measures (#12)
Browse files Browse the repository at this point in the history
* Test not exposing recorded measures

using promhttp handler instead of the registered prometheus exporter

* Remove unused promhttp import
  • Loading branch information
eran-levy authored and rghetia committed Aug 20, 2019
1 parent 95b801c commit 1d6bc2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"time"

"contrib.go.opencensus.io/exporter/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"go.opencensus.io/stats"
"go.opencensus.io/stats/view"
)
Expand Down Expand Up @@ -79,6 +78,6 @@ func main() {

addr := ":9999"
log.Printf("Serving at %s", addr)
http.Handle("/metrics", promhttp.Handler())
http.Handle("/metrics", exporter)
log.Fatal(http.ListenAndServe(addr, nil))
}

0 comments on commit 1d6bc2a

Please sign in to comment.