Package list golang-github-go-kit-kit / a94a580
follow opentracing-go refactoring of HTTPHeadersCarrier Bas van Beek 5 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3535 if err = tracer.Inject(
3636 span.Context(),
3737 opentracing.TextMap,
38 opentracing.HTTPHeaderTextMapCarrier(req.Header),
38 opentracing.HTTPHeadersCarrier(req.Header),
3939 ); err != nil {
4040 logger.Log("err", err)
4141 }
5555 var span opentracing.Span
5656 wireContext, err := tracer.Extract(
5757 opentracing.TextMap,
58 opentracing.HTTPHeaderTextMapCarrier(req.Header),
58 opentracing.HTTPHeadersCarrier(req.Header),
5959 )
6060 if err != nil && err != opentracing.ErrSpanContextNotFound {
6161 logger.Log("err", err)