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

Performance monitoring for streaming responses

Open szokeasaurusrex opened this issue 1 year ago • 0 comments

Problem Statement

In the Django integration, if a user wishes to performance-monitor a streaming response, the Django integration currently ends the transaction before the entire streaming response is complete. See the following for more context: https://github.com/getsentry/sentry/pull/64864#issuecomment-1934505442.

Solution Brainstorm

The transaction should continue running until the streaming response is complete. We should either auto-detect a streaming response and automatically instrument the entire streaming response, or we should allow users to specify that they need the entire streaming response to be instrumented.

szokeasaurusrex avatar Feb 14 '24 13:02 szokeasaurusrex