Put some DRB logs into announce::drb target.#4534
Conversation
Also add metric to set the decided leaf view.
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
|
Claude finished @twittner's task in 1m 45s —— View job Code Review: Put some DRB logs into
|
| pub fn new(m: &dyn HotshotMetrics) -> Self { | ||
| Self { | ||
| timeouts: m.create_counter("coordinator_timeouts".into(), None), | ||
| leaf_decided_view: m.create_gauge("leaf_decided_view".into(), None), |
There was a problem hiding this comment.
Nit: all other metrics in this struct use a coordinator_ prefix (e.g. coordinator_timeouts). Should this be coordinator_leaf_decided_view for consistency and to avoid potential name collisions with gauges registered by other components?
There was a problem hiding this comment.
My thinking was that this is a consensus-level metric, not a coordinator-level one.
| "We are calculating the DRB result with input {drb_input:?}, but we had \ | ||
| previously stored {loaded_drb_input:?} with a different difficulty level for \ | ||
| this epoch. Discarding the value from storage" | ||
| error!( |
There was a problem hiding this comment.
The info! calls in this function were moved to target: "announce::drb", but this error! (and the two warn! calls at lines 183 and 223) still use the default module target. Was this intentional? Errors/warnings here are arguably the most important DRB messages to surface when filtering by announce::drb.
There was a problem hiding this comment.
error and warn are expected to be present regardless, the announce target exists specifically to enable less noisy and more ... targeted info messages.
Also add metric to set the decided leaf view.