Skip to content

Refactor logs batching into a reusable generic Batcher<T> #1007

@szokeasaurusrex

Description

@szokeasaurusrex

This is the refactor-only part of #997: move the batching mechanism out of logs-specific code so metrics can reuse it, while keeping logs behavior unchanged.

Scope from #997

Details

The extracted change should preserve existing enqueue/flush semantics (size-based flush, timed flush, shutdown flush) and not introduce metrics capture yet. In practice, this should be reviewable as an internal refactor where logs tests still prove behavior, either by keeping existing tests or moving equivalent coverage into the new batcher module.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions