-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add logging for RPC subscription notifications #2021
Conversation
Add detailed tracing logs for RPC subscription events, including: - Pending transaction notifications - New block header notifications - Log event notifications The logs now include relevant context such as transaction hash, block number, and the number of subscribers being notified.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Minor formatting adjustment to the RPC subscription logging, ensuring consistent and clean tracing output for new block header notifications.
…nformation Update tracing logs to display the actual subscribers instead of just the subscriber count for: - Pending transaction notifications - New block header notifications - Log event notifications This change provides more granular visibility into which subscribers are being notified during RPC events.
Clean up tracing log comments for: - Pending transaction notifications - New block header notifications Remove unnecessary inline comments while maintaining the existing logging structure.
Remove trailing whitespaces in tracing log statements for: - Pending transaction notifications - New block header notifications Ensure consistent and clean logging output without functional changes.
Final benchmark: Git Info:
Configuration:
Leader Stats: Follower Stats: Plots: |
User description
Add detailed tracing logs for RPC subscription events, including:
The logs now include relevant context such as transaction hash, block number, and the number of subscribers being notified.
PR Type
Enhancement
Description
Add detailed tracing logs for RPC subscription events
Log pending transactions, new block headers, log events
Include context: transaction hash, block number, subscribers count
Improve visibility and debugging for subscription notifications
Changes walkthrough 📝
rpc_subscriptions.rs
Add tracing logs for RPC subscription events
src/eth/rpc/rpc_subscriptions.rs