mirror of https://github.com/grpc/grpc-go.git
Use full method for trace construction.
The methodFamily func already chops up the string, and the title should be the full method string too. This now matches the non-streaming client trace.
This commit is contained in:
parent
389d18d972
commit
671cc291d1
|
|
@ -105,7 +105,7 @@ func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth
|
|||
codec: cc.dopts.codec,
|
||||
}
|
||||
if EnableTracing {
|
||||
cs.traceInfo.tr = trace.New("Sent."+methodFamily(desc.StreamName), desc.StreamName)
|
||||
cs.traceInfo.tr = trace.New("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