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

databendlabs / openraft / 20205132107
88%

Build:
DEFAULT BRANCH: main
Ran 14 Dec 2025 08:22AM UTC
Jobs 1
Files 232
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

14 Dec 2025 08:09AM UTC coverage: 92.733% (+0.02%) from 92.711%
20205132107

push

github

drmingdrmer
feat: add `runtime-stats` feature flag for runtime statistics access

Add a feature flag that exposes runtime statistics types (`RuntimeStats`,
`SharedRuntimeState`, `Histogram`) via the `stats` module, allowing
applications to monitor Raft operational metrics like batch sizes.

This feature is **unstable** and the API may change in future versions.

Changes:
- Add `Histogram` with logarithmic bucketing and bucket index cache for small values
- Add `RuntimeStats` tracking `apply_batch` and `append_batch` histograms
- Add `SharedRuntimeState` as `Arc<Mutex<RuntimeStats>>` wrapper for cross-component sharing
- Add `RuntimeStats::display()` returning `RuntimeStatsDisplay` with precomputed percentiles
- Add `PercentileStats` with `total`, `p50`, `p90`, `p99` fields
- Add `Raft::runtime_stats()` method gated by `runtime-stats` feature
- Export types from `crate::stats` module when feature is enabled

114 of 129 new or added lines in 5 files covered. (88.37%)

1 existing line in 1 file now uncovered.

14356 of 15481 relevant lines covered (92.73%)

153673.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
0.0% openraft/src/base/histogram/percentile_stats.rs
13
31.58
openraft/src/core/runtime_stats.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% openraft/src/base/histogram/percentile_stats.rs
Jobs
ID Job ID Ran Files Coverage
1 20205132107.1 14 Dec 2025 08:22AM UTC 232
92.73
GitHub Action Run
Source Files on build 20205132107
  • Tree
  • List 232
  • Changed 9
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20205132107
  • 1282a1ae on github
  • Prev Build on main (#20159366200)
  • Next Build on main (#20205349839)
  • 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