Add tracing capabilities for internode rpc Servers (#6254)

This commit is contained in:
Harshavardhana
2018-08-07 02:51:30 -07:00
committed by Nitish Tiwari
parent 9719640e34
commit 2f1756489e
4 changed files with 4 additions and 4 deletions

View File

@@ -203,5 +203,5 @@ func registerPeerRPCRouter(router *mux.Router) {
rpcServer, err := NewPeerRPCServer()
logger.FatalIf(err, "Unable to initialize peer RPC Server", context.Background())
subrouter := router.PathPrefix(minioReservedBucketPath).Subrouter()
subrouter.Path(peerServiceSubPath).Handler(rpcServer)
subrouter.Path(peerServiceSubPath).HandlerFunc(httpTraceHdrs(rpcServer.ServeHTTP))
}