Skip to content

Add metrics for flashblock and message tracking in OpRBuilder #543

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

Merged
merged 4 commits into from
Apr 10, 2025

Conversation

jowparks
Copy link
Contributor

@jowparks jowparks commented Apr 7, 2025

Enhanced the OpRBuilderMetrics struct to include new metrics for tracking flashblocks, messages sent, and invalid blocks. Updated the OpPayloadBuilder to utilize these metrics during block building and transaction simulation processes.

  • Added flashblock_count, messages_sent_count, and invalid_blocks_count to OpRBuilderMetrics.
  • Integrated metrics tracking in OpPayloadBuilder for message sending, block building success, and transaction simulation.
  • Recorded durations for various operations to improve performance monitoring.

📝 Summary

💡 Motivation and Context


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

Enhanced the OpRBuilderMetrics struct to include new metrics for tracking flashblocks, messages sent, and invalid blocks. Updated the OpPayloadBuilder to utilize these metrics during block building and transaction simulation processes.

- Added `flashblock_count`, `messages_sent_count`, and `invalid_blocks_count` to OpRBuilderMetrics.
- Integrated metrics tracking in OpPayloadBuilder for message sending, block building success, and transaction simulation.
- Recorded durations for various operations to improve performance monitoring.
@jowparks jowparks force-pushed the feat-flashblocks-metrics branch from 554b719 to 1553dfe Compare April 7, 2025 21:11
@jowparks jowparks marked this pull request as ready for review April 8, 2025 16:36
@jowparks jowparks requested a review from cody-wang-cb April 8, 2025 16:37
@jowparks jowparks requested a review from avalonche April 9, 2025 18:32
@avalonche avalonche merged commit 08f6ece into flashbots:develop Apr 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants