Fix spans for streaming responses in WSGI based frameworks#3798
Merged
antonpirker merged 54 commits intomasterfrom Nov 25, 2024
Merged
Fix spans for streaming responses in WSGI based frameworks#3798antonpirker merged 54 commits intomasterfrom
antonpirker merged 54 commits intomasterfrom
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #3798 +/- ##
==========================================
+ Coverage 79.89% 79.94% +0.05%
==========================================
Files 137 137
Lines 15385 15421 +36
Branches 2611 2614 +3
==========================================
+ Hits 12292 12329 +37
- Misses 2222 2223 +1
+ Partials 871 869 -2
|
…hed." This reverts commit 1fe8679.
…ntry/sentry-python into antonpirker/fix-streaming-response
…ntry/sentry-python into antonpirker/fix-streaming-response
32c40ed to
c612326
Compare
15eb914 to
30d18fa
Compare
sentrivana
approved these changes
Nov 22, 2024
Contributor
sentrivana
left a comment
There was a problem hiding this comment.
Left a couple of comments. As long as the tests for the various integrations that use the WSGI middleware are happy, I think this looks good.
antonpirker
added a commit
that referenced
this pull request
Dec 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes spans in streaming responses when using WSGI based frameworks. Only close the transaction once the response was consumed. This way all the spans created during creation of the response will be recorded with the transaction:
People having Sentry in a streaming application will:
Fixes #3736