-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
crates/wallet/src/lib.rs
Outdated
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()); | ||
} |
There was a problem hiding this comment.
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
crates/wallet/src/lib.rs
Outdated
@@ -343,6 +356,16 @@ fn validate_tx_request(request: &TransactionRequest) -> Result<(), OdysseyWallet | |||
Ok(()) | |||
} | |||
|
|||
/// Metrics for a `wallet`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Metrics for a `wallet`. | |
/// Metrics for the `wallet_` RPC namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tysm
Closes #40