Repository navigation
Create BatchSpanProcessorBurstBenchmark.java - #8911
adhamahmad wants to merge 3 commits into
Conversation
Pull request dashboard statusWaiting on the author · refreshed 2026-11-21 01:36 UTC Two things need attention:
Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8911 +/- ##
=========================================
Coverage 90.45% 90.45%
- Complexity 11182 11183 +1
=========================================
Files 1032 1032
Lines 30508 30508
Branches 3992 3992
=========================================
+ Hits 27596 27597 +1
Misses 1935 1935
+ Partials 977 976 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hey @jack-berg , Appreciate any feedback on this. |
jack-berg
left a comment
There was a problem hiding this comment.
Are you interested in following this up with work to try to improve things around this benchmark? If so, what is your plan?
Its not useful to land a benchmark unless we're going to use it as a way to measure optimization progress.
|
Hi @adhamahmad — just a friendly reminder that this pull request is waiting on you. The dashboard status comment has the open items and is kept current.
|
Hey @jack-berg , thanks for the review and sorry for the delay. Yes, I’m interested in following this up. The plan:
I'll work through all your comments on the benchmark over the next few days. |
b34e6c9 to
1866bc9
Compare
Add JMH benchmark for BatchSpanProcessor burst absorption
Description
Part of #7508.
Follows the approach agreed in the issue: "Add a benchmark/test scenario that reproduces bursty high-throughput conditions and reports span drop behavior consistently" (agreed by @jack-berg).
Benchmark only: no production code or defaults change. It is a baseline for comparing opt-in alternatives later.
Changes
BatchSpanProcessorBurstBenchmark. Each operation produces a burst (6,000 spans) and callsforceFlush(); to ensure the accepted spans are fully processed before the next burst.maxQueueSize,maxExportBatchSizeand exporter latency.producedSpans,exportedSpansanddroppedSpansas aux counters, updated during the measured operation. Drops come from the processor's internal telemetry (BatchSpanProcessorMetrics) and are checked against what the exporter completed; the benchmark fails if they disagree.Testing
Per 6,000-span burst (aux counters are per-iteration totals, divided by bursts):
With the default queue, 57% of the burst is dropped. Increasing the queue to 8192 eliminates the drops for this workload, but requires draining all 6,000 spans rather than the 2,560 spans accepted with the default queue.
Environment: Windows, Temurin JDK 21.0.10. Absolute times are platform-dependent.