opencensus-python icon indicating copy to clipboard operation
opencensus-python copied to clipboard

Trace calls to Session.send with opencensus-ext-requests

Open d-webs opened this issue 5 years ago • 0 comments

Is your feature request related to a problem?

In certain cases when using a requests.Session object, it may be helpful to to use prepared requests. When using requests.Session.send, however, traces are unexpectedly missing. The reason for this is because the opencensus-ext-requests only patches the Session.request function (which get, post, patch, etc. ultimately call), but not send.

References:

Describe the solution you'd like. Wrap calls to Session.send in addition to Session.request

Describe alternatives you've considered. N/A

Additional context. N/A

d-webs avatar Dec 29 '20 21:12 d-webs