diff --git a/benchmark/benchmark.go b/benchmark/benchmark.go index 8e155647..48765a0a 100644 --- a/benchmark/benchmark.go +++ b/benchmark/benchmark.go @@ -47,8 +47,9 @@ import ( "google.golang.org/grpc/grpclog" ) -var EnableTracing = false - +func init(){ + grpc.EnableTracing = false +} func newPayload(t testpb.PayloadType, size int) *testpb.Payload { if size < 0 { grpclog.Fatalf("Requested a response with invalid length %d", size)