Calling handleRPC with context derived from the original (#1227)

* Calling handleRPC with different context derived from the original context
* change comment for tagRPC and stats fields
This commit is contained in:
Menghan Li
2017-05-10 17:54:49 -07:00
committed by GitHub
parent 600406e696
commit 17760cfd5b
7 changed files with 17 additions and 20 deletions

View File

@ -182,7 +182,7 @@ func invoke(ctx context.Context, method string, args, reply interface{}, cc *Cli
ctx = newContextWithRPCInfo(ctx)
sh := cc.dopts.copts.StatsHandler
if sh != nil {
ctx = sh.TagRPC(ctx, &stats.RPCTagInfo{FullMethodName: method})
ctx = sh.TagRPC(ctx, &stats.RPCTagInfo{FullMethodName: method, FailFast: c.failFast})
begin := &stats.Begin{
Client: true,
BeginTime: time.Now(),