• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 21021457713
88%

Build:
DEFAULT BRANCH: main
Ran 15 Jan 2026 06:06AM UTC
Jobs 1
Files 260
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jan 2026 05:54AM UTC coverage: 87.756% (+0.2%) from 87.582%
21021457713

push

github

drmingdrmer
refactor: add multi-slot support to `Histogram` with extracted log scale

Refactor histogram implementation to support sliding-window metrics through
multiple slots. Each slot contains independent bucket counts and optional
user-defined metadata. Extract logarithmic scale logic into dedicated modules
for better organization and reusability.

Changes:
- Make `Histogram` generic with `Histogram<T = ()>` for slot metadata
- Add `Slot<T>` struct for per-slot bucket counts and metadata
- Extract `LogScale<WIDTH>` with precomputed lookup tables
- Extract `LogScaleConfig<WIDTH>` for compile-time bucket configuration
- Add `advance()` method for slot rotation with oldest eviction
- Add `active_slot_count()` and `capacity()` methods
- Maintain aggregate bucket counts across all active slots

320 of 323 new or added lines in 5 files covered. (99.07%)

3 existing lines in 3 files now uncovered.

15804 of 18009 relevant lines covered (87.76%)

148555.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
97.64
openraft/src/base/histogram/log_scale.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.66
0.87% openraft/src/base/histogram/histogram.rs
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
1
92.86
-1.79% openraft/src/raft/api/management.rs
Jobs
ID Job ID Ran Files Coverage
1 21021457713.1 15 Jan 2026 06:06AM UTC 260
87.76
GitHub Action Run
Source Files on build 21021457713
  • Tree
  • List 260
  • Changed 9
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21021457713
  • 5fb44303 on github
  • Prev Build on main (#20703918341)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc