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

prisma-risk / tsoracle / 26299467786
95%

Build:
DEFAULT BRANCH: main
Ran 22 May 2026 04:28PM UTC
Jobs 1
Files 53
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

22 May 2026 04:25PM UTC coverage: 95.922% (-0.4%) from 96.272%
26299467786

push

github

web-flow
feat(client): instrument retry, driver, and connect signals (#116)

Adds observability to tsoracle-client so operators can detect leader
pivots, retries, connect failures, and queue saturation in production.
The crate already declared a `tracing` feature with no call sites and
had no metrics surface at all; this fills both gaps.

- New `metrics` feature (default off) emits eight `tsoracle.client.*`
  signals through the `metrics` crate facade, mirroring the server's
  feature gating and dot-segmented namespace.
- `tracing` is now in the default feature set (matching the server)
  with structured events on every retry decision: per-attempt debug,
  per-pivot debug, and per-failure warn lines.
- `decode_leader_hint` distinguishes Absent / Decoded / Malformed
  outcomes so the `decode_failures` counter and warning fire only on
  genuine wire-format failures, not on missing trailers.
- `tests/client_metrics.rs` drives three end-to-end scenarios
  (follower→leader pivot, closed-port retry, malformed-trailer fake
  service) and asserts each documented signal fires via
  `metrics_util::DebuggingRecorder`.
- `docs/operations.md` adds the client signal catalog symmetric to the
  existing server section.

Feature matrix verified: --no-default-features, +tracing, +metrics,
+tracing +metrics, and --all-features all compile cleanly.

Closes #86

62 of 92 new or added lines in 3 files covered. (67.39%)

1 existing line in 1 file now uncovered.

6916 of 7210 relevant lines covered (95.92%)

79191.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
26
82.59
-9.63% crates/tsoracle-client/src/retry.rs
4
97.62
-2.38% crates/tsoracle-client/src/leader_resolved.rs

Coverage Regressions

Lines Coverage ∆ File
1
99.6
0.01% crates/tsoracle-server/src/server.rs
Jobs
ID Job ID Ran Files Coverage
1 26299467786.1 22 May 2026 04:28PM UTC 53
95.92
GitHub Action Run
Source Files on build 26299467786
  • Tree
  • List 53
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26299467786
  • 358160fd on github
  • Prev Build on main (#26299074447)
  • Next Build on main (#26299252624)
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