grpc: rename "Recv" trace family to "grpc.Recv".
This commit is contained in:
@ -251,7 +251,7 @@ func (s *Server) sendResponse(t transport.ServerTransport, stream *transport.Str
|
||||
func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, md *MethodDesc) (err error) {
|
||||
var traceInfo traceInfo
|
||||
if EnableTracing {
|
||||
traceInfo.tr = trace.New("Recv."+methodFamily(stream.Method()), stream.Method())
|
||||
traceInfo.tr = trace.New("grpc.Recv."+methodFamily(stream.Method()), stream.Method())
|
||||
defer traceInfo.tr.Finish()
|
||||
traceInfo.firstLine.client = false
|
||||
traceInfo.tr.LazyLog(&traceInfo.firstLine, false)
|
||||
@ -340,7 +340,7 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp
|
||||
tracing: EnableTracing,
|
||||
}
|
||||
if ss.tracing {
|
||||
ss.traceInfo.tr = trace.New("Recv."+methodFamily(stream.Method()), stream.Method())
|
||||
ss.traceInfo.tr = trace.New("grpc.Recv."+methodFamily(stream.Method()), stream.Method())
|
||||
ss.traceInfo.firstLine.client = false
|
||||
ss.traceInfo.tr.LazyLog(&ss.traceInfo.firstLine, false)
|
||||
defer func() {
|
||||
|
Reference in New Issue
Block a user