-
Notifications
You must be signed in to change notification settings - Fork 93
feat(node/engine): Add info
log for safe head promotion
#1948
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds structured timing logs upon successful safe head promotion in ConsolidateTask
.
- Introduce
Instant
timers to measure total, block-fetch, and fork-choice-update durations - Emit an
info!
log with block hash, number, and timing details on successful consolidation - Change fallback log for build task from
trace!
todebug!
Comments suppressed due to low confidence (1)
crates/node/engine/src/task_queue/tasks/consolidate/task.rs:120
- [nitpick] There are no tests verifying that this
info!
log is emitted with the correct fields after successful consolidation. Consider adding or updating integration tests that assert the structured log includeshash
,number
, and all timing fields.
info!(
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be nice as a metric too, wdyt?
This already has a metric :D |
Overview
Adds an
info
log for when theConsolidateTask
successfully promotes the safe head of the chain.