Skip to content
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

fix(metrics): various fixes in metrics #1313

Conversation

mtsitrin
Copy link
Contributor

@mtsitrin mtsitrin commented Jan 8, 2025

@mtsitrin mtsitrin linked an issue Jan 8, 2025 that may be closed by this pull request
@mtsitrin mtsitrin marked this pull request as ready for review January 8, 2025 13:15
@mtsitrin mtsitrin requested a review from a team as a code owner January 8, 2025 13:15
@@ -199,6 +196,12 @@ func (m *Manager) applyBlock(block *types.Block, commit *types.Commit, blockMeta
panic("I'm the new Proposer now. restarting as a proposer")
}

// update metrics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it not better to move them before ValidateConfigWithRollappParams()? it can return err on ValidateConfigWithRollappParams or panic for rotation and metrics wont be updated...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why it needs to be updated on error
the metrics are not for debugging

@mtsitrin mtsitrin merged commit 15bf560 into main Jan 13, 2025
4 checks passed
@mtsitrin mtsitrin deleted the 1221-pending-submissions-metrics-dont-update-when-block-production-paused branch January 13, 2025 10:55
srene pushed a commit that referenced this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pending submissions metrics don't update when block production paused
3 participants