mirror of https://github.com/grpc/grpc-go.git
grpc: rename request trace family from "Sent" to "grpc.Sent".
This commit is contained in:
parent
000aa5623e
commit
18c359f6a9
2
call.go
2
call.go
|
|
@ -118,7 +118,7 @@ func Invoke(ctx context.Context, method string, args, reply interface{}, cc *Cli
|
|||
}()
|
||||
|
||||
if EnableTracing {
|
||||
c.traceInfo.tr = trace.New("Sent."+methodFamily(method), method)
|
||||
c.traceInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method)
|
||||
defer c.traceInfo.tr.Finish()
|
||||
c.traceInfo.firstLine.client = true
|
||||
if deadline, ok := ctx.Deadline(); ok {
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth
|
|||
tracing: EnableTracing,
|
||||
}
|
||||
if cs.tracing {
|
||||
cs.traceInfo.tr = trace.New("Sent."+methodFamily(method), method)
|
||||
cs.traceInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method)
|
||||
cs.traceInfo.firstLine.client = true
|
||||
if deadline, ok := ctx.Deadline(); ok {
|
||||
cs.traceInfo.firstLine.deadline = deadline.Sub(time.Now())
|
||||
|
|
|
|||
Loading…
Reference in New Issue