|
|
@ -122,9 +122,7 @@ func (t *traceConn) Receive() (reply interface{}, err error) { |
|
|
|
|
|
|
|
|
|
|
|
func (t *traceConn) WithContext(ctx context.Context) Conn { |
|
|
|
func (t *traceConn) WithContext(ctx context.Context) Conn { |
|
|
|
t.Conn = t.Conn.WithContext(ctx) |
|
|
|
t.Conn = t.Conn.WithContext(ctx) |
|
|
|
if root, ok := trace.FromContext(ctx); ok { |
|
|
|
t.tr, _ = trace.FromContext(ctx) |
|
|
|
t.tr = root |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return t |
|
|
|
return t |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|