getCallInfo returns the callInfo stored in the context, or nil if there isn't one.
(ctx context.Context)
| 189 | // getCallInfo returns the callInfo stored in the context, or nil |
| 190 | // if there isn't one. |
| 191 | func getCallInfo(ctx context.Context) *callInfo { |
| 192 | ci, _ := ctx.Value(callInfoKey{}).(*callInfo) |
| 193 | return ci |
| 194 | } |
| 195 | |
| 196 | // rpcInfo is RPC information scoped to the RPC attempt life span client side, |
| 197 | // and the RPC life span server side. |
no test coverage detected