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

[requests] patch Session.send instead of Session.request #707

Merged
merged 2 commits into from
Nov 12, 2018

Conversation

brettlangdon
Copy link
Member

This PR changes our requests instrumentation to patch requests.Session.send instead of requests.Session.request.

The problem we have is if someone is using .send() directly then we do not end up tracing their calls.

This change is safe to make since .request() calls .send(), and this is a change compatible with >=2.0.0.

If we wanted to support <2.0.0 in the future we can add tracing back in requests.Session.request.

@brettlangdon brettlangdon added this to the 0.17.0 milestone Nov 9, 2018
Copy link
Member

@Kyle-Verhoog Kyle-Verhoog left a comment

Choose a reason for hiding this comment

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

lgtm

@brettlangdon brettlangdon changed the base branch from master to 0.17-dev November 12, 2018 13:14
@brettlangdon brettlangdon merged commit a1f39a8 into 0.17-dev Nov 12, 2018
@Kyle-Verhoog Kyle-Verhoog deleted the brettlangdon/requests.send branch November 13, 2018 08:47
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.

None yet

2 participants