Repository navigation
Create BatchSpanProcessorBurstBenchmark.java - #8911
Open
adhamahmad wants to merge 1 commit into
Open
adhamahmad wants to merge 1 commit into
adhamahmad wants to merge 1 commit into
Conversation
Pull request dashboard statusWaiting on reviewers · refreshed 2026-10-07 00:02 UTC Review the latest changes. 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 91.13% 91.12% -0.02%
+ Complexity 10703 10702 -1
============================================
Files 1007 1007
Lines 28918 28918
Branches 3702 3702
============================================
- Hits 26355 26351 -4
Misses 1736 1736
- Partials 827 831 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.