-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(stages, tree): update sync metrics from blockchain tree #3507
Conversation
Codecov Report
... and 11 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
MetricEvent::SyncHeight { height } => { | ||
for stage_id in StageId::ALL { | ||
let stage_metrics = self.sync_metrics.get_stage_metrics(stage_id); | ||
stage_metrics.checkpoint.set(height as f64); | ||
} | ||
} |
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.
i see, nice - i guess we dont need to do anyhting with the entities processed / entities total?
8cec11e
to
3487b2b
Compare
Resolves #2604
Currently,
reth_sync_checkpoint
metric is not updated after the pipeline sync is done.This PR fixes it by sending new block heights from blockchain tree to
reth_stages::MetricsListener
, which iterates over all known stages usingStageId::ALL
and updates thereth_sync_checkpoint
gauge value.