Skip to content

feat(stress): add bound counter/histogram stress tests#3516

Open
cijothomas wants to merge 1 commit into
open-telemetry:mainfrom
cijothomas:cijothomas/stress-bound-instruments
Open

feat(stress): add bound counter/histogram stress tests#3516
cijothomas wants to merge 1 commit into
open-telemetry:mainfrom
cijothomas:cijothomas/stress-bound-instruments

Conversation

@cijothomas
Copy link
Copy Markdown
Member

Adds two new stress test bins for the bound instruments API (gated behind experimental_metrics_bound_instruments):

  • metrics_counter_bound — single BoundCounter created at startup; hot loop calls add(1).
  • metrics_histogram_bound — single BoundHistogram created at startup; hot loop calls record(1).

This complements the existing bound-instrument benchmark in opentelemetry-sdk/benches/bound_instruments.rs by exercising the same hot path under sustained multi-threaded load.

Also refreshes the throughput numbers in the headers of all metric/trace/log stress tests with results captured on Apple M4 Pro (macOS 26.4.1, 14 cores), since none of the existing tests had numbers recorded for this hardware.

@cijothomas cijothomas requested a review from a team as a code owner May 14, 2026 03:10
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.8%. Comparing base (8db5a12) to head (71e1197).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3516   +/-   ##
=====================================
  Coverage   82.8%   82.8%           
=====================================
  Files        130     130           
  Lines      27289   27289           
=====================================
  Hits       22622   22622           
  Misses      4667    4667           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant