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: metrics for the send_transaction wallet method #45

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

steph-rs
Copy link
Contributor

Closes #40

Comment on lines 217 to 223
Ok(_) => {
self.inner.metrics.valid_send_transaction_calls.increment(1);
}
Err(err) => {
self.inner.metrics.invalid_send_transaction_calls.increment(1);
return Err(err.into());
}
Copy link
Member

Choose a reason for hiding this comment

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

the tx is only valid if it passes all the checks before EthTransactions::send_raw_transaction

@@ -343,6 +356,16 @@ fn validate_tx_request(request: &TransactionRequest) -> Result<(), OdysseyWallet
Ok(())
}

/// Metrics for a `wallet`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Metrics for a `wallet`.
/// Metrics for the `wallet_` RPC namespace.

@steph-rs steph-rs requested a review from onbjerg October 16, 2024 07:44
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

tysm

crates/wallet/src/lib.rs Outdated Show resolved Hide resolved
@onbjerg onbjerg merged commit 7c11c28 into ithacaxyz:main Oct 17, 2024
13 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.

Add metrics for wallet_ namespace
2 participants