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

databendlabs / openraft / 20588119080
88%

Build:
DEFAULT BRANCH: main
Ran 30 Dec 2025 03:33AM UTC
Jobs 1
Files 256
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

30 Dec 2025 03:20AM UTC coverage: 87.943% (+0.02%) from 87.925%
20588119080

push

github

drmingdrmer
feat: integrate OpenTelemetry Metrics API

Add pluggable metrics collection using OpenTelemetry standard, allowing
applications to export Raft metrics to any OTEL-compatible backend
(Prometheus, Jaeger, OTLP, etc.).

Changes:
- Add `MetricsRecorder` trait with histograms, gauges, and counters
- Add `metrics-otel` crate with `OpenTelemetryRecorder` implementation
- Add `Raft::set_metrics_recorder()` API to install custom recorder
- Add `RaftTerm::as_u64()` for optional term-to-u64 conversion
- Support all integer types for `RaftTerm`
- Add comprehensive tests for all `MetricsRecorder` methods

- Fix: #1446

72 of 76 new or added lines in 7 files covered. (94.74%)

6 existing lines in 3 files now uncovered.

15646 of 17791 relevant lines covered (87.94%)

160670.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
52.7
-0.08% openraft/src/core/raft_msg/raft_msg_name.rs
3
86.96
openraft/src/metrics/recorder.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
2
93.39
0.06% openraft/src/replication/stream_state.rs
3
95.52
-1.35% openraft/src/replication/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 20588119080.1 30 Dec 2025 03:33AM UTC 256
87.94
GitHub Action Run
Source Files on build 20588119080
  • Tree
  • List 256
  • Changed 9
  • Source Changed 6
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20588119080
  • 4646dc7e on github
  • Prev Build on main (#20568149451)
  • Next Build on main (#20592154614)
  • 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