-
-
Notifications
You must be signed in to change notification settings - Fork 200
feat(logs): batching #1338
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
Merged
JoshuaMoelans
merged 42 commits into
joshua/feat/logs
from
joshua/feat/logs_batching_single_queue
Sep 12, 2025
Merged
feat(logs): batching #1338
Changes from 20 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
fbed0e2
initial queue attempt
JoshuaMoelans 234bbb6
add timer
JoshuaMoelans 5815c1e
prototype double buffer approach
JoshuaMoelans 914514d
update logs unit tests for batching
JoshuaMoelans d1988a8
replace timer with bgworker
JoshuaMoelans d07ef33
add first integration tests
JoshuaMoelans b3d624c
Merge branch 'joshua/feat/logs' into joshua/feat/logs_batching
JoshuaMoelans b2dbe18
update example.c with correct log thread amounts
JoshuaMoelans ccd88d2
cleanup
JoshuaMoelans 845f5bc
add wait for 'adding' logs in flush logic
JoshuaMoelans ad88a88
go back to single queue for performance testing
JoshuaMoelans 28d4a50
add time checks
JoshuaMoelans 3d360cb
add ToDos + cleanup sentry_value_t cloning
JoshuaMoelans f067959
initial attempt
JoshuaMoelans 91b2f7f
cond_wait for timer + 'adding' spinlock
JoshuaMoelans c0395ae
add sleep for tests
JoshuaMoelans ea3fffb
add sleep for tests
JoshuaMoelans 98d6c21
force flush before attempting timer_worker shutdown
JoshuaMoelans e1e2a1b
add proper cond_wait for 'adding' counter
JoshuaMoelans cb834f7
revert to manual flush on shutdown instead of timer thread flush
JoshuaMoelans d320067
add separate timer_stop atomic
JoshuaMoelans c85f685
cleanup + replace 'adding' cond_wait by pure spinlock
JoshuaMoelans 3c28646
change bgworker for simpler thread implementation
JoshuaMoelans 651ca04
cleanup
JoshuaMoelans 02cea90
fix memleak
JoshuaMoelans 3907d90
fixes
JoshuaMoelans d8bbb23
cleanup
JoshuaMoelans b8c110e
cleanup
JoshuaMoelans 6f2be36
windows fixes
JoshuaMoelans 394c492
update shutdown order
JoshuaMoelans 8da409e
fixes
JoshuaMoelans ed9176b
explicit check to stop timer task
JoshuaMoelans 208952b
windows cleanup
JoshuaMoelans b34b5c8
loosen threaded test assertion for CI
JoshuaMoelans b63d7e4
add continue for unexpected logs flush trigger instead of attempting …
JoshuaMoelans 6d30ff1
Windows re-add condition variable trigger case
JoshuaMoelans 978abfb
feat(logs): add `before_send_log` (#1355)
JoshuaMoelans 165c8f2
fix ownership issues in single buffer batching (#1362)
supervacuus 210f959
batching double buffered (#1365)
supervacuus f022d1e
add flush retry for missed flush requests
JoshuaMoelans cdad215
move flush retry into flush function
JoshuaMoelans c405106
add docs
JoshuaMoelans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.