Files
proton-sdk-rs/crates/proton-sdk
nvrl d83c8803f3 feat(sdk): report the sends behind each API call
An `http_request` event is one logical call, and a 401 refresh and
replay or a retry inside it was invisible. The event now carries an
`attempts` attribute: the first send, the retries and the replay. The
refresh request itself is not counted.

Sends are counted with a task-local scope around the call, so a refresh
run on its own task and calls on other tasks never add to it. A loopback
test checks three sends on the wire (request, refresh, replay) against
one event with `attempts = 2`.
2026-11-28 16:44:27 +01:00
..
2026-06-28 10:33:59 +02:00