Codebase list golang-github-go-kit-kit / 93f53b2
refactor(tracing.opentracing): use ContextWithSpan after applying tags just cosmetics Alexander Babai 3 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4040 span = tracer.StartSpan(operationName)
4141 }
4242 defer span.Finish()
43 ctx = opentracing.ContextWithSpan(ctx, span)
4443
4544 applyTags(span, cfg.Tags)
4645 if cfg.GetTags != nil {
4746 extraTags := cfg.GetTags(ctx)
4847 applyTags(span, extraTags)
4948 }
49
50 ctx = opentracing.ContextWithSpan(ctx, span)
5051
5152 response, err := next(ctx, request)
5253 if err := identifyError(response, err, cfg.IgnoreBusinessError); err != nil {