Skip to content

Commit 6515173

Browse files
committed
Remove opencensus from trillian project
1 parent a3c8961 commit 6515173

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

cmd/gcp/main.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
"syscall"
2929
"time"
3030

31-
"github.com/google/trillian/monitoring/opencensus"
3231
"github.com/prometheus/client_golang/prometheus/promhttp"
3332
sctfe "github.com/transparency-dev/static-ct"
3433
"github.com/transparency-dev/static-ct/storage"
@@ -118,17 +117,8 @@ func main() {
118117
http.Handle("/metrics", promhttp.Handler())
119118
}
120119

121-
// If we're enabling tracing we need to use an instrumented http.Handler.
122-
var handler http.Handler
123-
if *tracing {
124-
handler, err = opencensus.EnableHTTPServerTracing(*tracingProjectID, *tracingPercent)
125-
if err != nil {
126-
klog.Exitf("Failed to initialize stackdriver / opencensus tracing: %v", err)
127-
}
128-
}
129-
130120
// Bring up the HTTP server and serve until we get a signal not to.
131-
srv := http.Server{Addr: *httpEndpoint, Handler: handler}
121+
srv := http.Server{Addr: *httpEndpoint}
132122
shutdownWG := new(sync.WaitGroup)
133123
go awaitSignal(func() {
134124
shutdownWG.Add(1)

0 commit comments

Comments
 (0)