Skip to content

feat: Protocol error prometheus metric#2119

Merged
nimrod-teich merged 9 commits into
mainfrom
protocol-error-prometheus-metric
Nov 30, 2025
Merged

feat: Protocol error prometheus metric#2119
nimrod-teich merged 9 commits into
mainfrom
protocol-error-prometheus-metric

Conversation

@Tomelia1999

Copy link
Copy Markdown
Contributor

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • read the contribution guide
  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the main branch
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

@Tomelia1999 Tomelia1999 changed the title Protocol error prometheus metric Feat: Protocol error prometheus metric Nov 26, 2025
@Tomelia1999 Tomelia1999 changed the title Feat: Protocol error prometheus metric feat: Protocol error prometheus metric Nov 26, 2025
@github-actions

github-actions Bot commented Nov 26, 2025

Copy link
Copy Markdown

Test Results

3 092 tests  +3   3 091 ✅ +3   23m 28s ⏱️ - 11m 43s
  125 suites  - 1       1 💤 ±0 
    6 files    - 1       0 ❌ ±0 

Results for commit c7a9966. ± Comparison against base commit 1087ad5.

This pull request removes 1 and adds 4 tests. Note that renamed tests count towards both.
github.com/lavanet/lava/v5/testutil/e2e ‑ TestLavaProtocol
github.com/lavanet/lava/v5/protocol/relaycore ‑ TestBothErrorTypesRecoveryMetricsWithQuorum
github.com/lavanet/lava/v5/protocol/relaycore ‑ TestNoRecoveryMetricsWhenQuorumNotMet
github.com/lavanet/lava/v5/protocol/relaycore ‑ TestNodeErrorsRecoveryMetricWithQuorum
github.com/lavanet/lava/v5/protocol/relaycore ‑ TestProtocolErrorsRecoveryMetricWithQuorum

♻️ This comment has been updated with latest results.

@@ -266,6 +267,11 @@ func NewConsumerMetricsManager(options ConsumerMetricsManagerOptions) *ConsumerM

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you should have the same for protocol errors:

lava_consumer_total_protocol_errors_recovery_attempts

@@ -266,6 +267,11 @@ func NewConsumerMetricsManager(options ConsumerMetricsManagerOptions) *ConsumerM
Help: "The total number of retries sent due to retry mechanism",
}, []string{"spec", "apiInterface"})

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should add the attempts metric for "protocol errors", same ass I did for lava_consumer_total_protocol_errors_recovered_successfully

Follow the behavior of lava_consumer_total_node_errors_recovery_attempts

@nimrod-teich nimrod-teich self-requested a review November 30, 2025 15:31
@nimrod-teich nimrod-teich merged commit 7544165 into main Nov 30, 2025
27 of 28 checks passed
@nimrod-teich nimrod-teich deleted the protocol-error-prometheus-metric branch November 30, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants