Skip to content

[BENCHMARK] sync instrument recording benchmarks - #4470

Draft
dbarker wants to merge 1 commit into
open-telemetry:mainfrom
dbarker:benchmark_sync_instruments
Draft

[BENCHMARK] sync instrument recording benchmarks#4470
dbarker wants to merge 1 commit into
open-telemetry:mainfrom
dbarker:benchmark_sync_instruments

Conversation

@dbarker

@dbarker dbarker commented Aug 21, 2026

Copy link
Copy Markdown
Member

Contributes to #4317 and #4416

Adds sync instruments recording benchmarks covering all instrument types and aggregation types. Includes Exemplar filters and bound instruments when enabled.

Changes

  • Counter benchmarks
    • Drop aggregation
    • Sum aggregation (by attribute count, by cardinality, by thread count)
  • Histogram benchmarks
    • Drop aggregation
    • Explicit bucket and Base2 aggregation (by attribute count, by cardinality, by thread count)
  • Gauge benchmarks
    • Drop aggregation
    • Last value aggregation (by attribute count, by cardinality, by thread count)
  • ExemplarFilter
    • Counter with AlwaysOff, AlwaysOn, and TraceBased filters
    • Histogram (Default and Base2Expo) with AlwaysOff and AlwaysOn filters
  • Bound instruments (counter and histogram)
    • Drop aggregation
    • Sum aggregation (nominal and by thread count)
    • Histogram (default and base2) aggregation (nominal and by thread count)

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.62%. Comparing base (68a575f) to head (7c0db60).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4470   +/-   ##
=======================================
  Coverage   82.62%   82.62%           
=======================================
  Files         512      512           
  Lines       20139    20139           
=======================================
  Hits        16638    16638           
  Misses       3501     3501           
🚀 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