Skip to content

Add sync request metrics #7790

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 2 commits into
base: unstable
Choose a base branch
from
Open

Conversation

dapplion
Copy link
Collaborator

Issue Addressed

Add error rates metrics on unstable to benchmark against tree-sync. In my branch there are frequent errors but mostly connections errors as the node is still finding it set of stable peers.

These metrics are very useful and unstable can benefit from them ahead of tree-sync

Proposed Changes

Add three new metrics:

  • sync_rpc_requests_success_total: Total count of sync RPC requests successes
  • sync_rpc_requests_error_total: Total count of sync RPC requests errors
  • sync_rpc_request_duration_sec: Time to complete a successful sync RPC requesst

@dapplion dapplion requested a review from jxs as a code owner July 24, 2025 14:09
method = self.name,
count = items.len(),
"Sync RPC request completed"
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved the match from on_rpc_response_result to here as I need access to start_instant

@dapplion dapplion added ready-for-review The code is ready for review syncing labels Jul 25, 2025
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 syncing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant