-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(span-buffer): Add compression #93592
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
Conversation
This reverts commit 6bca6f8.
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #93592 +/- ##
==========================================
+ Coverage 85.57% 88.03% +2.46%
==========================================
Files 10332 10332
Lines 596312 596131 -181
Branches 23163 23121 -42
==========================================
+ Hits 510289 524830 +14541
+ Misses 85567 70808 -14759
- Partials 456 493 +37 |
This reverts commit d124072.
src/sentry/spans/buffer.py
Outdated
combined = b"\x00".join(payloads) | ||
|
||
# If compression is disabled, return the combined data as-is | ||
if self._zstd_compressor is None: | ||
return combined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be a problem if we want to roll back. Could we instead write the payloads separately in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed this comment, which also fixes the next one
Applies zstd compression (level 0) on the pre-aggregated span trees before they are inserted into Redis. This should reduce the time Redis is blocked on streaming large payload batches.
Since the flusher needs to modify payloads, it de-compresses them on the fly. This change could lead to more CPU consumption and backlogs in the flusher.
Closes STREAM-211