Skip to content

fix(batcher): Add global flush trigger based on the span number - #7150

Merged
alexander-alderman-webb merged 2 commits into
masterfrom
webb/batcher/add-global-flush-trigger
Aug 10, 2026
Merged

fix(batcher): Add global flush trigger based on the span number#7150
alexander-alderman-webb merged 2 commits into
masterfrom
webb/batcher/add-global-flush-trigger

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Description

I realized we would be dropping spans if we reach GLOBAL_MAX_BEFORE_DROP spans before reaching the bytes limit at which we flush spans.

Add a global span limit to trigger a batcher flush. This mirrors the per-bucket logic.

Add a test for the global span limit based on the test for the per-bucket limit.
Add test_span_number_reset_after_length_based_flushing() to ensure accurate bookkeeping of the total estimated size of spans in the batcher.

Issues

Reminders

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review August 10, 2026 12:34
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner August 10, 2026 12:34
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

99590 passed | ⏭️ 6671 skipped | Total: 106261 | Pass Rate: 93.72% | Execution Time: 345m 6s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +30
Passed Tests 📈 +30
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2502 uncovered lines.
✅ Project coverage is 90.02%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.99%    90.02%    +0.03%
==========================================
  Files          193       193         —
  Lines        25073     25074        +1
  Branches      9066      9066         —
==========================================
+ Hits         22564     22572        +8
- Misses        2509      2502        -7
- Partials      1440      1440         —

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb changed the title fix(batcher): Add global flush trigger based on span number fix(batcher): Add global flush trigger based on the span number Aug 10, 2026
@alexander-alderman-webb
alexander-alderman-webb merged commit c7e9e62 into master Aug 10, 2026
145 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/batcher/add-global-flush-trigger branch August 10, 2026 12:49
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.

2 participants