Skip to content

rcpx v0.4.0

Choose a tag to compare

@yermakovsa yermakovsa released this 21 Jun 06:37
· 13 commits to main since this release
40664ce

Adds attempt observation for upstream visibility.

This release adds Config.OnAttempt, an optional hook that is called once for each attempted upstream. It can be used for logging or metrics, including recording which upstream handled a successful request.

The hook receives AttemptInfo with the attempt number, upstream URL, best-effort JSON-RPC method info, status code, error, and whether the attempt was final.

OnAttempt does not affect retry, failover, cooldown, or non-idempotent safety behavior.

Changes

  • Add Config.OnAttempt
  • Add AttemptInfo
  • Report successful, failed, failover, policy-stopped, and non-idempotent-blocked attempts
  • Update README documentation
  • Document synchronous callback behavior and unredacted upstream URLs