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:
David Symonds 2015-06-24 13:22:00 +10:00
parent 389d18d972
commit 671cc291d1
1 changed files with 1 additions and 1 deletions

View File

@ -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())