Open filips123 opened 1 year ago
Hey @filips123, thanks a ton for the super detailed bug report, this will make it much easier for us to debug! We're a bit swamped at the moment but will take a look when time permits.
Looks like reading a big chunked response using response.content
is not instrumented and this is the thing that causes the "missing instrumentation" (maybe, I just looked at it very briefly)
We should not add a requests integration; rather, we should improve our support for instrumenting streaming responses
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.28.1
Steps to Reproduce
I made an example program to show this error:
The code in production is different and more complicated as it's integrated into a larger project. However, the same problem still happens.
Interestingly, it does not happen with all URLs, but it happens consistently with this URL (and a few others).
Expected Result
Sentry should auto-instrument all
requests
code and assignhttp.client
span.Actual Result
Sentry instruments only a part of
requests.get
ashttp.client
. The rest of the HTTP request handling does not have a span assigned, which can make Sentry show "Missing span instrumentation", even though the profiler shows that the code is related to the HTTP request and comes from therequests
library.Screenshots of traces and running my example program:
Links to a few traces/profiles running my example program:
Link to a few traces/profiles showing the problem in production: