Capture JSON-RPC error metrics

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
observability

Research direction

Start by tracing how bproxy currently records HTTP request failure metrics, then inspect where JSON-RPC response bodies are handled. The work is done when failure counts and rates can be aggregated by method and reason, with overly detailed error messages cleaned up as needed.

Written by the indexing model from the issue text.

Description

enhancement

Currently bproxy captures http request failures but doesn't capture anything related to json-rpc errors. It would be nice to generate metrics that could tell us the counts and rates of failure reasons sliced by the method and reason.

This will require deserializing the response body and potentially cleaning up the error message if it's too detailed for aggregation.

Dominant language
Go
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flashbots/bproxy

All issues in flashbots/bproxy

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.