File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import (
28
28
"syscall"
29
29
"time"
30
30
31
- "github.com/google/trillian/monitoring/opencensus"
32
31
"github.com/prometheus/client_golang/prometheus/promhttp"
33
32
sctfe "github.com/transparency-dev/static-ct"
34
33
"github.com/transparency-dev/static-ct/storage"
@@ -118,17 +117,8 @@ func main() {
118
117
http .Handle ("/metrics" , promhttp .Handler ())
119
118
}
120
119
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
-
130
120
// 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 }
132
122
shutdownWG := new (sync.WaitGroup )
133
123
go awaitSignal (func () {
134
124
shutdownWG .Add (1 )
You can’t perform that action at this time.
0 commit comments