-
Notifications
You must be signed in to change notification settings - Fork 28
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
chore(starknet_http_server): add metrics for added txs #2744
base: main
Are you sure you want to change the base?
Conversation
3659196
to
69432ac
Compare
69432ac
to
b6ef4d0
Compare
b6ef4d0
to
357a393
Compare
6425d98
to
7c18fd9
Compare
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.
Reviewed 4 of 5 files at r1, all commit messages.
Reviewable status: 4 of 5 files reviewed, 3 unresolved discussions (waiting on @Itay-Tsabary-Starkware)
crates/starknet_http_server/src/metrics.rs
line 10 at r1 (raw file):
("ADDED_TRANSACTIONS_FAILURE", "Number of faulty added transactions", 0); pub(crate) fn init_metrics() {
Please add a log message to indicate that the metric has been initialized
Code quote:
pub(crate) fn init_metrics() {
crates/starknet_http_server/src/metrics.rs
line 24 at r1 (raw file):
} pub(crate) fn count_added_transaction() {
Consider renaming to increment_total_transactions
Code quote:
count_added_transaction
crates/starknet_http_server/src/metrics.rs
line 28 at r1 (raw file):
} pub(crate) fn count_transaction_status(add_tx_success: bool) {
Consider renaming the function to record_transaction_status
Code quote:
count_transaction_status
7c18fd9
to
88e9cb1
Compare
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.
Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @nadin-Starkware)
crates/starknet_http_server/src/metrics.rs
line 10 at r1 (raw file):
Previously, nadin-Starkware (Nadin Jbara) wrote…
Please add a log message to indicate that the metric has been initialized
Done.
commit-id:9bf71741
88e9cb1
to
230894b
Compare
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.
Reviewed 1 of 5 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware)
Stack: