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

Alan-Jowett / sonde / 26606283935
81%

Build:
DEFAULT BRANCH: main
Ran 28 May 2026 10:49PM UTC
Jobs 1
Files 124
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

28 May 2026 10:35PM UTC coverage: 82.174% (+0.003%) from 82.171%
26606283935

push

github

web-flow
feat(azure-companion): add tracing instrumentation for diagnostics (#1088)

Add structured tracing via the `tracing` crate to sonde-azure-companion.
Previously the companion had no logging - only `eprintln!` for a few
error paths - making it impossible to diagnose runtime issues like
messages not being read from the desired-state queue.

Instrumentation added at key points:
- `info` on startup: effective queue config (endpoint, queue names),
  service principal credentials (tenant/client ID), connector connect,
  and bridge lifecycle (start/shutdown)
- `debug` on message events: queue receive, forward to connector,
  upstream publish, message complete/abandon
- `trace` on each downstream queue poll (fires every ~1s when idle)
- `warn` / `error` on failures: token acquisition, HTTP errors, decode
  errors, connector write failures, bridge runtime exit

Tracing initialization:
- CLI `run` mode: stderr subscriber controlled by `RUST_LOG`
- Windows service mode: file-backed subscriber writing to
  `companion.log` in the state directory (defaults to `info` level
  when `RUST_LOG` is unset, since stderr is invisible for services)
- Uses `try_init()` to avoid panicking on double-init in the Windows
  service dispatch path

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

15 of 33 new or added lines in 1 file covered. (45.45%)

37878 of 46095 relevant lines covered (82.17%)

251.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
81.55
0.05% crates/sonde-azure-companion/src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 26606283935.1 28 May 2026 10:49PM UTC 124
82.17
GitHub Action Run
Source Files on build 26606283935
  • Tree
  • List 124
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26606283935
  • 1ef8fada on github
  • Prev Build on main (#26596656837)
  • Next Build on main (#26608068360)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc