ethereum-optimism / ethereum-optimism/optimism
op-node: modularize metrics
- Dominant language
- Go
- Stars
- 6.5k
- Forks
- 4k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 145
Description
The op-node currently has one big metrics struct.
With struct embedding and interface embedding we can encapsulate the metrics sub-responsibilities, and categorize this.
This will make extension of the metrics cleaner, and allow for per-chain parametrization by isolating the chain-specific kinds of metrics.
Contributor guide
Research direction
Start by locating the op-node's large metrics struct and mapping its current responsibilities, especially the chain-specific metrics. Review nearby interfaces and embedding patterns before deciding the boundaries; done means metrics responsibilities are encapsulated and chain-specific parametrization is isolated without changing intended metrics behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100