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

[api] set follow_redirects=False on App Engine; recommended in docs #168

Merged
merged 1 commit into from
Oct 11, 2016
Merged

[api] set follow_redirects=False on App Engine; recommended in docs #168

merged 1 commit into from
Oct 11, 2016

Conversation

evanj
Copy link

@evanj evanj commented Oct 10, 2016

The documentation at the following URL states: "Explicitly set
follow_redirects=False when calling Urlfetch, as it avoids a heavier-weight
service designed to follow redirects." I have not been able to measure any
significant difference, but since the Datadog API doesn't use redirects,
this should be a safe change. Source:

https://cloud.google.com/appengine/docs/python/microservice-performance#use_the_shortest_route

We will be using this in production at Bluecore very shortly. Happy to abandon this or sign a CLA or whatever you might want me to do. Thanks!

The documentation at the following URL states: "Explicitly set
follow_redirects=False when calling Urlfetch, as it avoids a heavier-weight
service designed to follow redirects." I have not been able to measure any
significant difference, but since the Datadog API doesn't use redirects,
this should be a safe change. Source:

https://cloud.google.com/appengine/docs/python/microservice-performance#use_the_shortest_route
@yannmh yannmh added this to the 0.15.0 milestone Oct 11, 2016
@yannmh yannmh self-assigned this Oct 11, 2016
@yannmh
Copy link
Member

yannmh commented Oct 11, 2016

Thanks @evanj 🙇

The Datadog API does not indeed use redirects. Your changes are much appreciated!

@yannmh yannmh merged commit f2d3df5 into DataDog:master Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants