Skip to content

chore: Add metrics for supervisor RPC error #16111

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

louisbrown0212
Copy link
Contributor

Resolves #16080

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

@emhane do we really need all of these?

@emhane
Copy link
Member

emhane commented May 9, 2025

@emhane do we really need all of these?

yes I think it will be useful for debugging interop + developing recovery mechanism + perf optimisation
cc @dhyaniarun1993

we need a separate grafana board for op-reth #15724

Copy link
Member

@emhane emhane left a comment

Choose a reason for hiding this comment

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

nice! one counter can be skipped, otherwise lgtm

/// Counter for the number of times the chain database was uninitialized
pub(crate) uninitialized_chain_database_count: Counter,
/// Counter for the number of times data was skipped
pub(crate) skipped_data_count: Counter,

Choose a reason for hiding this comment

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

I think we can create a single metric 'supervisor_api_errors' and have the error_type as tags to the metric. Let me know what you think.

Copy link
Member

Choose a reason for hiding this comment

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

what are the benefits? link to docs for the type you are referring to?

Copy link
Member

@emhane emhane left a comment

Choose a reason for hiding this comment

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

smol comment remaining

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Add metrics for supervisor RPC error
4 participants