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(starknet_sequencer_metrics): define required metrics for the remote servers #4243

Closed
wants to merge 1 commit into from

Conversation

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor

@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: 0 of 1 files reviewed, 1 unresolved discussion


crates/starknet_sequencer_metrics/src/metric_definitions.rs line 124 at r1 (raw file):

    MetricScope::Infra => {
        // Local server counters
        { BATCHER_MSGS_RECEIVED, "batcher_msgs_received", "Counter of messages received by batcher component", 0 },

Please add a todo to rename these so they are consistent with the remote ones:
BATCHER_MSGS_RECEIVED -> BATCHER_LOCAL_MSGS_RECEIVED

The metric name and description as well.
You can address that in later pr on the top of this stack

Code quote:

{ BATCHER_MSGS_RECEIVED, "batcher_msgs_received"

Copy link
Contributor

@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: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @lev-starkware)


crates/starknet_sequencer_metrics/src/metric_definitions.rs line 143 at r1 (raw file):

        { BATCHER_REMOTE_MSGS_RECEIVED, "batcher_remote_msgs_received", "Counter of messages received by batcher remote server", 0 },
        { BATCHER_REMOTE_VALID_MSGS_RECEIVED, "batcher_remote_valid_msgs_received", "Counter of valid messages received by batcher remote server", 0 },
        { BATCHER_REMOTE_MSGS_PROCESSED, "batcher_remote_msgs_processed", "Counter of messages  processed by batcher remote server", 0 },

Is there a way to make this a fn that takes only the name and produces the literal? Maybe a const fn?

Code quote:

Counter of messages  processed by batcher remote server

Copy link
Contributor Author

@lev-starkware lev-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: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @Itay-Tsabary-Starkware)


crates/starknet_sequencer_metrics/src/metric_definitions.rs line 124 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Please add a todo to rename these so they are consistent with the remote ones:
BATCHER_MSGS_RECEIVED -> BATCHER_LOCAL_MSGS_RECEIVED

The metric name and description as well.
You can address that in later pr on the top of this stack

Done.


crates/starknet_sequencer_metrics/src/metric_definitions.rs line 143 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Is there a way to make this a fn that takes only the name and produces the literal? Maybe a const fn?

Sorry, I don't understand exactly what you are proposing.

Copy link
Contributor

@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.

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @lev-starkware)

@lev-starkware
Copy link
Contributor Author

✓ Commit merged in pull request #4262

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