Skip to content

chore: separate metrics for consensus errors#520

Merged
lpahlavi merged 3 commits intomainfrom
lpahlavi/defi-2461-separate-consensus-error-metrics
Nov 13, 2025
Merged

chore: separate metrics for consensus errors#520
lpahlavi merged 3 commits intomainfrom
lpahlavi/defi-2461-separate-consensus-error-metrics

Conversation

@lpahlavi
Copy link
Contributor

@lpahlavi lpahlavi commented Nov 11, 2025

(DEFI-2461) Currently, virtually all HTTP outcall errors are caused by lack of consensus between replicas, leading to misleading error statistics. This can occur frequently for calls that return fast-changing data (e.g. eth_call on volatile contracts or eth_blockNumber).

This change introduces a new metric, evmrpc_err_no_consensus, to distinctly track consensus-related outcall errors, separating them from other, potentially more critical, error types.

@lpahlavi lpahlavi changed the title DEFI-2461: Separate metrics for consensus errors chore: separate metrics for consensus errors Nov 11, 2025
@lpahlavi lpahlavi marked this pull request as ready for review November 11, 2025 14:14
@lpahlavi lpahlavi requested a review from a team as a code owner November 11, 2025 14:14
Copy link
Contributor

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

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

Thanks @lpahlavi for adding this!

@lpahlavi lpahlavi merged commit 0b91d67 into main Nov 13, 2025
11 checks passed
@lpahlavi lpahlavi deleted the lpahlavi/defi-2461-separate-consensus-error-metrics branch November 13, 2025 08:13
@lpahlavi lpahlavi mentioned this pull request Nov 17, 2025
lpahlavi added a commit that referenced this pull request Nov 17, 2025
## 🤖 New release

* `evm_rpc`: 2.7.0 -> 2.7.1 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

## `evm_rpc`

<blockquote>

## [2.7.1] - 2025-11-17

### Changed

- Add metrics label identifying requests made with supported providers
([#521](#521))
- Separate consensus errors from other HTTP outcall errors in metrics
([#520](#520))

[2.7.1]:
evm_rpc-v2.7.0...evm_rpc-v2.7.1

</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Louis Pahlavi <louis.pahlavi@dfinity.org>
This was referenced Nov 24, 2025
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.

2 participants