Skip to content

Conversation

@dartdart26
Copy link
Collaborator

These cover both txn sending by transaction-sender and zkproof-worker operation.

Also make --host-chain-url a long-only argument for compatibility with -h for help.

@dartdart26 dartdart26 self-assigned this Dec 2, 2025
@dartdart26 dartdart26 requested review from a team as code owners December 2, 2025 15:12
@cla-bot cla-bot bot added the cla-signed label Dec 2, 2025
@dartdart26 dartdart26 requested a review from Copilot December 2, 2025 15:14
@dartdart26 dartdart26 force-pushed the petar/txn-sender-verified-gauges branch from ad3436a to a9e16f9 Compare December 2, 2025 15:15
Copilot finished reviewing on behalf of dartdart26 December 2, 2025 15:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds two new Prometheus gauge metrics to monitor ZK proof processing in the transaction-sender service and changes the --host-chain-url CLI argument to long-only form (removing -h short form) to avoid conflict with the help flag.

Key changes:

  • Added coprocessor_verify_proof_resp_unsent_txn_gauge to track verify proof responses waiting to be sent to the blockchain
  • Added coprocessor_verify_proof_pending_gauge to track proofs pending verification by zkproof-worker
  • Changed --host-chain-url from supporting both -h and --host-chain-url to long-only --host-chain-url

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
docs/metrics/metrics.md Added documentation for two new ZK proof gauges with alarm recommendations; updated zkproof-worker section to clarify metrics are in transaction-sender
coprocessor/fhevm-engine/transaction-sender/src/metrics.rs Implemented two new gauges with SQL queries to track pending and unsent verify proofs
coprocessor/fhevm-engine/transaction-sender/src/bin/transaction_sender.rs Changed host_chain_url argument to long-only form to avoid -h conflict with help

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dartdart26 dartdart26 force-pushed the petar/txn-sender-verified-gauges branch from a9e16f9 to 16ead6c Compare December 2, 2025 15:20
These cover both txn sending by `transaction-sender` and
`zkproof-worker` operation.

Also make `--host-chain-url` a long-only argument for compatibility with
`-h` for help.
@dartdart26 dartdart26 force-pushed the petar/txn-sender-verified-gauges branch from 16ead6c to a89f9d7 Compare December 2, 2025 15:24
gateway_url: Url,

#[arg(short, long)]
#[arg(long)]
Copy link
Contributor

Choose a reason for hiding this comment

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

are you sure it's not used ?

Copy link
Collaborator Author

@dartdart26 dartdart26 Dec 2, 2025

Choose a reason for hiding this comment

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

I think the full one is used everywhere, also in the values file. Not 100% sure if someone else is not using the short one though.

If I keep the short one, it doesn't even start on my end, complaining about -h.

@tawadaa Could you please check if only --host-chain-url is used and not -h?

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.

3 participants