Skip to content

Comments

Send metrics to loki with each new event (transmitted, committed, executed#16862

Merged
asoliman92 merged 3 commits intodevelopfrom
load-testing-loki
Mar 21, 2025
Merged

Send metrics to loki with each new event (transmitted, committed, executed#16862
asoliman92 merged 3 commits intodevelopfrom
load-testing-loki

Conversation

@asoliman92
Copy link
Contributor

@asoliman92 asoliman92 commented Mar 20, 2025

Send metrics to loki with each new event (transmitted, committed, executed

This will help us understand how many messages per lane passed each state during run time.

Added log fields (failed_commit and failed_exec) that we populate when we timeout waiting for messages after the load is finished. In a subsequent PR we can reuse them to get some data about failed messages during the run not at the end of it.

…cuted)

This will help us understand how many messages per lane passed each state
@cl-sonarqube-production
Copy link

// only add commit and exec durations if we have correct timestamps to calculate them
commitDuration := uint64(0)
if state.timestamps[committed] != 0 && state.timestamps[transmitted] != 0 {
commitDuration = state.timestamps[committed] - state.timestamps[transmitted]
Copy link
Contributor

Choose a reason for hiding this comment

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

What does transmitted mean here? When the message is finalized on the source chain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

message successfully sent not finalized

Copy link
Contributor

Choose a reason for hiding this comment

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

Then I don't think this is the right metric, it should be from finalized -> committed.

@asoliman92 asoliman92 added this pull request to the merge queue Mar 21, 2025
Merged via the queue into develop with commit 8f49c22 Mar 21, 2025
201 of 203 checks passed
@asoliman92 asoliman92 deleted the load-testing-loki branch March 21, 2025 10:48
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