Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove x/net/http2 dependency #175

Merged

Conversation

achille-roussel
Copy link
Contributor

This PR is a follow up from our conversation in #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.

Copy link
Contributor

@iredelmeier iredelmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall.

Thanks for the PRs!

collector_client_http.go Show resolved Hide resolved
@achille-roussel achille-roussel force-pushed the remove-http2-dependency branch from 63fdd4d to c0465b6 Compare October 23, 2018 00:19
@iredelmeier iredelmeier merged commit cf4a715 into lightstep:master Oct 23, 2018
@achille-roussel achille-roussel deleted the remove-http2-dependency branch October 24, 2018 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants