lightstep / lightstep-tracer-go

The Lightstep distributed tracing library for Go
https://lightstep.com
MIT License
98 stars 53 forks source link

remove x/net/http2 dependency #175

Closed achille-roussel closed 6 years ago

achille-roussel commented 6 years ago

This PR is a follow up from our conversation in https://github.com/lightstep/lightstep-tracer-go/issues/149

The http client implementation was using http.Transport for plain http, and http2.Transport for https, which is already the default behavior of the standard library (since http2 support was introduced in Go 1.6).

It seems like the extra dependency on x/net/http2 is unnecessary and the lightstep client could use the default http transport without losing any features.

The PR also fixes support for http proxies, and adds a couple of sane defaults for various configuration options of the http transport.