Skip to content

ref(sentry-core): Refactor logs batching into generic Batcher#1018

Merged
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/generic-batcher
Mar 2, 2026
Merged

ref(sentry-core): Refactor logs batching into generic Batcher#1018
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/generic-batcher

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Feb 27, 2026

Refactor the logs batcher into a generic Batcher<T>, so that we can reuse it for metrics and any future types.

Split off from #997 — however, in this PR, I aimed to minimize the diff between the logs.rs and batch.rs files, so that git would recognize the change as a rename, not a file deletion and new file.

Closes #1007
Closes RUST-158

Co-authored-by: Joris Bayer joris.bayer@sentry.io

@linear
Copy link

linear bot commented Feb 27, 2026

Refactor the logs batcher into a generic `Batcher<T>`, so that we can reuse it for metrics and any future types.

Closes #1007
Closes [RUST-158](https://linear.app/getsentry/issue/RUST-158/refactor-logs-batching-into-a-reusable-generic-batchert)

Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/generic-batcher branch from bd1fb97 to 53e52e4 Compare March 2, 2026 12:30
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review March 2, 2026 12:30
@szokeasaurusrex szokeasaurusrex requested a review from lcian as a code owner March 2, 2026 12:30
Copy link
Member

@lcian lcian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

szokeasaurusrex added a commit that referenced this pull request Mar 2, 2026
Refactor the logs batcher into a generic `Batcher<T>`, so that we can reuse it for metrics and any future types.

Closes #1007
Closes [RUST-158](https://linear.app/getsentry/issue/RUST-158/refactor-logs-batching-into-a-reusable-generic-batchert)

Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/generic-batcher branch 2 times, most recently from 4044c5f to 53e52e4 Compare March 2, 2026 12:55
@szokeasaurusrex szokeasaurusrex merged commit fe351f6 into master Mar 2, 2026
44 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/generic-batcher branch March 2, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor logs batching into a reusable generic Batcher<T>

2 participants