The httptracing
package forms a bridge between httpclient and the
opentracing-contrib nethttp package. It provides a HTTP client with
opentracing support, implementing the httpclient.Client
interface.
tracer := opentracing.GlobalTracer()
client := httptracing.Trace(tracer, http.DefaultClient)
resp, err := client.Get("http://test.com")
//...