-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enha: capture error metrics in rpc_subscriptions_active and remove the method wrapper #1942
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Final benchmark: Git Info:
Configuration:
RPS Stats: Max: 1253.00, Min: 705.00, Avg: 1115.08, StdDev: 63.35 Plot: View Plot |
PR Type
Enhancement
Description
Add major_error_code attribute to ErrorCode derive macro
Implement new error code system with major codes
Remove method wrapper and related metrics
Update RPC methods to use new error system
Changes walkthrough 📝
lib.rs
Enhance ErrorCode derive macro with major error codes
crates/stratus_macros/src/lib.rs
stratus_error.rs
Implement new error code system with major codes
src/eth/primitives/stratus_error.rs
mod.rs
Remove rpc_method_wrapper module import
src/eth/rpc/mod.rs
rpc_method_wrapper.rs
Remove rpc_method_wrapper.rs file
src/eth/rpc/rpc_method_wrapper.rs
rpc_middleware.rs
Update RPC middleware for new error code system
src/eth/rpc/rpc_middleware.rs
rpc_server.rs
Update RPC server for new error handling system
src/eth/rpc/rpc_server.rs
metrics_definitions.rs
Remove rpc_error_response metric
src/infra/metrics/metrics_definitions.rs