Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: surface circuit-breaker state and per-domain cooldown counts as Prometheus metrics #513
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
Uh oh!
There was an error while loading. Please reload this page.
feat: surface circuit-breaker state and per-domain cooldown counts as Prometheus metrics #513
Changes from 1 commit
bfe247706f37672dc300ef45c55d16b4f3e99a93abFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…n REST Before: any JSON-RPC envelope received in response to a REST-shaped request was classified as `rest_protocol_mismatch` with confidence 0.95 and routed through `isDeceptiveResponsePattern` → CRITICAL signal → strike accumulation. That is correct for canned successes like `{"jsonrpc":"2.0","result":[]}` returned regardless of request shape, but it falsely punishes operators whose backends only speak JSON-RPC: when PATH routes a REST request to them they correctly reply with their native error format (e.g. -32601 Method not found). That is a capability mismatch, not gaming, yet the heuristic treats both identically. Operationally this surfaced as repeated 5-minute cooldowns across ~16 services on operators with JSON-RPC-only nodes — five honest-error events per session was enough to cross the critical-strike threshold even though their endpoints were otherwise healthy. Fix: split the detection into two reasons: - `rest_protocol_mismatch` — has `result` field (and not `result:null`): canned success, still deceptive, still triggers a critical signal. - `rest_protocol_mismatch_error` — has `error` only (or `result:null` alongside `error`, the Geth/Bor/Erigon spec quirk): honest capability mismatch, NOT in the deceptive-pattern list, routed to major signal (no strike accumulation, no cooldown). Both still ShouldRetry against a REST-capable peer. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing