Merge branch 'main' of github.com:go-kratos/kratos into main

pull/715/head
chenzhihui 4 years ago
commit 283313c2a1
  1. 4
      middleware/tracing/tracing.go

@ -104,6 +104,10 @@ func Client(opts ...Option) middleware.Middleware {
if md, ok := metadata.FromOutgoingContext(ctx); ok {
carrier = opentracing.HTTPHeadersCarrier(md)
ctx = metadata.NewOutgoingContext(ctx, md)
} else {
md = metadata.Pairs()
carrier = opentracing.HTTPHeadersCarrier(md)
ctx = metadata.NewOutgoingContext(ctx, md)
}
}
span := options.tracer.StartSpan(

Loading…
Cancel
Save