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

feat(op-batcher/op-proposer): add InstrumentedClient #109

Merged

Conversation

welkin22
Copy link
Contributor

@welkin22 welkin22 commented Jan 8, 2024

Description

Currently neither op-batcher nor op-proposer has metrics related to RPC clients, so we cannot know the performance of requesting L1 and L2 endpoints. We need to solve this problem.

Rationale

We add InstrumentedClient in op-service, which is responsible for collecting metrics for each method.

Example

Example of new metrics:
op_batcher_default_rpc_client_requests_total
op_proposer_default_rpc_client_requests_total
op_batcher_default_rpc_client_request_duration_seconds_bucket
op_proposer_default_rpc_client_request_duration_seconds_bucket

Changes

Notable changes:

  • Added InstrumentedClient in op-service
  • Replace the original EthClient with the newly added InstrumentedClient.
  • Add necessary items to metrics in op-batcher and op-proposer.

@welkin22 welkin22 merged commit ffec6c8 into bnb-chain:develop Jan 9, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants