chore: remove per-program fetch metric#1261
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (22)
💤 Files with no reviewable changes (9)
📝 WalkthroughWalkthroughThis pull request removes per-program account fetch metrics and the ProgramFetchResult type from the metrics crate, deletes the PER_PROGRAM_ACCOUNT_FETCH_STATS counter and its helper, and updates consumers. RemoteAccountProvider stops deriving/passing program_ids and no longer records per-program fetch stats. Chainlink and FetchCloner APIs drop the program_ids parameter and update all internal call sites. Numerous unit and integration tests and a couple of HTTP helper calls were adjusted to the new function signatures or formatting. Suggested reviewers
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Remove the program-specific account fetch metric that tracked fetch results by program ID.
Details
This PR removes the
per_program_account_fetch_statsmetric and its associated resulttype/helpers from
magicblock-metrics. The existing aggregate account fetch metrics remain inplace for failed, found, not-found, and successful fetches.
magicblock-chainlink
Account fetch handling no longer records per-program fetch results on either failure or success
paths. Fetch routing and the existing aggregate metrics behavior are preserved.
magicblock-metrics
The per-program account fetch counter, registration, helper function, and
ProgramFetchResultlabel type were removed. Aggregate bounded account fetch metrics remain available unchanged.
Summary by CodeRabbit