Codebase list golang-github-go-kit-kit / 492fed7
fixes He Liu 5 years ago
2 changed file(s) with 6 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
3636 }
3737
3838 ctx, span := trace.StartSpan(
39 ctx,
3940 name,
40 trace.FromContext(ctx),
41 trace.StartOptions{
42 Sampler: cfg.Sampler,
43 SpanKind: trace.SpanKindClient,
44 },
41 trace.WithSampler(cfg.Sampler),
42 trace.WithSpanKind(trace.SpanKindClient),
4543 )
4644
4745 if !cfg.Public {
3838 }
3939
4040 ctx, span := trace.StartSpan(
41 ctx,
4142 name,
42 trace.FromContext(ctx),
43 trace.StartOptions{
44 Sampler: cfg.Sampler,
45 SpanKind: trace.SpanKindClient,
46 },
43 trace.WithSampler(cfg.Sampler),
44 trace.WithSpanKind(trace.SpanKindClient),
4745 )
4846
4947 span.AddAttributes(