feat: allow RPC metrics disable + less locks#7168
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
✅ Files skipped from review due to trivial changes (3)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughAdds a mode-aware RPC metrics layer with a pre-resolved per-method metrics registry and a ChangesRPC Metrics Conditional Control
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
66d1cbd to
dedcc6c
Compare
dedcc6c to
fdc6ff4
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CHANGELOG.md`:
- Line 32: Replace the incorrect issue link in the CHANGELOG entry that
currently reads "[`#7168`](https://github.com/ChainSafe/forest/issues/7168)" with
the PR link format "[`#7168`](https://github.com/ChainSafe/forest/pull/7168)" so
the changelog references PR `#7168` instead of an issue; update the single line
containing "Added the `FOREST_RPC_METRICS_DISABLED` environment variable..."
accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 32e8a073-0a00-4c6a-bcac-5ff52ace4831
📒 Files selected for processing (7)
CHANGELOG.mddocs/docs/users/reference/env_variables.mdsrc/daemon/mod.rssrc/metrics/mod.rssrc/rpc/metrics_layer.rssrc/rpc/mod.rssrc/tool/offline_server/server.rs
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
filecoin-project/lotus(manual)
fdc6ff4 to
b657e95
Compare
b657e95 to
64cf1d7
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 6 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
New Features
Documentation
Tests