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

Track beacon processor import result metrics #6541

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

dapplion
Copy link
Collaborator

@dapplion dapplion commented Oct 26, 2024

Issue Addressed

Our current metrics to track the result of block imports are incomplete. A block import can be triggered by any block component, both from gossip and RPC. We should metric the AvailabilityProcessingStatus of block, blob, and custody column import to count all possible import events.

Also, I would like to track all errors that can occur during import. For example BlockError::DuplicateFullyImported, which show the efficiency of sync.

Proposed Changes

Track the return of all process_* functions with the same helper register_process_result_metrics. Track the result FullyImported / MissingComponents / Error labeled by block component and provenance.

Additional Info

This PR has no breaking changes w.r.t. current metrics. However, it fixes the following metric:

  • beacon_processor_rpc_block_imported_total: This metric is incorrect. Blocks with blobs synced by lookup sync are never tracked, as the block is always imported first and blobs second.

@dapplion dapplion added the ready-for-review The code is ready for review label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant