Codebase list golang-github-go-kit-kit / 941a019
utilize newly available easier creation of RPC Server span Bas van Beek 7 years ago
2 changed file(s) with 2 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
4242 if err != nil {
4343 logger.Log("err", err)
4444 }
45 if wireContext != nil {
46 span = tracer.StartSpan(operationName, ext.RPCServerOption(wireContext))
47 } else {
48 span = tracer.StartSpan(operationName)
49 }
45 span = tracer.StartSpan(operationName, ext.RPCServerOption(wireContext))
5046 return opentracing.ContextWithSpan(ctx, span)
5147 }
5248 }
6464 if err != nil {
6565 logger.Log("err", err)
6666 }
67 if wireContext != nil {
68 span = tracer.StartSpan(operationName, ext.RPCServerOption(wireContext))
69 } else {
70 span = tracer.StartSpan(operationName)
71 }
67 span = tracer.StartSpan(operationName, ext.RPCServerOption(wireContext))
7268 return opentracing.ContextWithSpan(ctx, span)
7369 }
7470 }