Description
Measure RPC call latency and expose SLA-oriented metrics so degradation in the upstream RPC is visible and alertable.
Requirements and context
Handle network failures gracefully with retries/backoff where appropriate, avoid leaking credentials, and add integration tests using mocked external services. Update configuration docs and keep coverage at target.
Suggested execution
Create a feature branch using the convention:
feat/integration-rpc-sla-monitoring
Implement changes
- Measure latency for outbound RPC calls.
- Expose p50/p95/p99 latency metrics labelled by endpoint.
- Emit an alert signal when latency exceeds the SLA.
- Add tests asserting metrics are recorded.
Test and commit
Run the test suite. Document the SLA thresholds in the PR.
Example commit message
feat(integration): add RPC response-time SLA monitoring
Guidelines
- Follow the existing code style, linting rules, and module conventions already present in the repository.
- Keep the change focused and reviewable; avoid unrelated refactors in the same PR.
- Write clear, descriptive commit messages using the Conventional Commits format.
- Ensure all CI checks pass (build, lint, type-check, tests, coverage) before requesting review.
- Open a pull request against the default branch, link this issue (
Closes #<id>), and describe what you changed and how you verified it.
- Be responsive to review feedback and keep the PR scope aligned with this issue.
Description
Measure RPC call latency and expose SLA-oriented metrics so degradation in the upstream RPC is visible and alertable.
Requirements and context
Handle network failures gracefully with retries/backoff where appropriate, avoid leaking credentials, and add integration tests using mocked external services. Update configuration docs and keep coverage at target.
Suggested execution
Create a feature branch using the convention:
Implement changes
Test and commit
Run the test suite. Document the SLA thresholds in the PR.
Example commit message
Guidelines
Closes #<id>), and describe what you changed and how you verified it.