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

databendlabs / openraft / 20205132107 / 1
88%
main: 88%

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

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

14356 of 15481 relevant lines covered (92.73%)

153673.93 hits per line

Source Files on job 20205132107.1
  • Tree
  • List 232
  • Changed 9
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20205132107
  • 1282a1ae on github
  • Prev Job for on main (#20159366200.1)
  • Next Job for on main (#20205349839.1)
  • 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