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

chore(starknet_http_server): add metrics for added txs #2744

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Itay-Tsabary-Starkware
Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware commented Dec 18, 2024

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator

@nadin-Starkware nadin-Starkware left a 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

Copy link
Contributor Author

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a 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.

Copy link
Collaborator

@nadin-Starkware nadin-Starkware left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware)

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.

3 participants