AlexStocks opened a new issue #1167:
URL: https://github.com/apache/dubbo-go/issues/1167


   <!-- Please only use this template for submitting enhancement requests -->
   
   **What would you like to be added**:
   
   ```go
   func NewServer(opt ...ServerOption) *Server {
          s := &Server{}
          s.cv = sync.NewCond(&s.mu)
          if EnableTracing {
             _, file, line, _ := runtime.Caller(1)
             s.events = trace.NewEventLog("grpc.Server"))
          }
   
          return s
   }
   ```
   
   As the above func shows, the gRPC will trace its invocation if 
grpc.EnableTracing is true.
   
   We should disable it in production as etcd.
   
   ```go
   // etcdmain/etcd.go
   func startEtcdOrProxyV2() {
        grpc.EnableTracing = false
   }
   ```
   
   **Why is this needed**:
   
   FOR BETTER PERFORMANCE.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to