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

ddtrace/tracer: add WithHTTPClient and increase default HTTP timeout #636

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

gbbr
Copy link
Contributor

@gbbr gbbr commented Apr 14, 2020

This change adds a new option WithHTTPClient and marks
WithHTTPRoundTripper as deprecated (now superseded). Additionally, the
default client timeout is increased to 2 seconds as it has proven to be
too short (see #181).

Closes #181

This change adds a new option `WithHTTPClient` and marks
`WithHTTPRoundTripper` as deprecated (now superseded). Additionally, the
default client timeout is increased to 2 seconds as it has proven to be
too short (see #181).

Closes #181
@gbbr gbbr added enhancement quick change/addition that does not need full team approval core labels Apr 14, 2020
@gbbr gbbr added this to the 1.24.0 milestone Apr 14, 2020
@gbbr gbbr requested a review from knusbaum April 14, 2020 10:37
Copy link
Contributor

@knusbaum knusbaum left a comment

Choose a reason for hiding this comment

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

Thanks, @gbbr
Just a documentation nit.

ddtrace/tracer/option.go Show resolved Hide resolved
knusbaum
knusbaum previously approved these changes Apr 15, 2020
Co-Authored-By: Kyle Nusbaum <kyle.nusbaum@datadoghq.com>
Copy link
Contributor

@cgilmour cgilmour left a comment

Choose a reason for hiding this comment

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

Re-approving. It was already reviewed and approved.

@gbbr gbbr merged commit 6639723 into v1 Apr 16, 2020
@gbbr gbbr deleted the gbbr/withhttpclient branch April 16, 2020 07:28
@mingrammer
Copy link
Contributor

I'm looking forward to this feature :)

@gbbr
Copy link
Contributor Author

gbbr commented May 7, 2020

It'll be out in a few days

mingrammer pushed a commit to mingrammer/dd-trace-go that referenced this pull request Dec 22, 2020
…ataDog#636)

This change adds a new option `WithHTTPClient` and marks
`WithHTTPRoundTripper` as deprecated (now superseded). Additionally, the
default client timeout is increased to 2 seconds as it has proven to be
too short (see DataDog#181).

Closes DataDog#181

Co-authored-by: Kyle Nusbaum <kyle.nusbaum@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement quick change/addition that does not need full team approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ddtrace/tracer: Client.Timeout exceeded
4 participants