-
Notifications
You must be signed in to change notification settings - Fork 53
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
Sishan/basic metrics #1852
Sishan/basic metrics #1852
Conversation
…Shot into sishan/basic_metrics
…nnected_peers Sishan/Revoke metric for tracking the number of peers.
…tworking_metrics basic metrics completed for networking metrics
…nc_last_block sishan/synced most recent block height
@@ -1075,6 +1096,8 @@ where | |||
"We received a timeout event in the consensus task for view {}!", | |||
*view | |||
); | |||
let consensus = self.consensus.read().await; |
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.
Where do we reset this metric? I think we should reset it once we have a view that succeeds.
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 is for resetting the consensus metric number_of_timeouts
, and will not be used for any other place. The whole consensus thing is wrapped in an Arc, therefore as long as we know which one to change it should be okay (like here we simply want to get self.consensus
).
This PR revokes metrics for
The main parts for review are:
crates/types/src/consensus.rs
,crates/task-impls/src/consensus.rs
, andcrates/hotshot/src/traits/networking.rs
.