ethereum-optimism / ethereum-optimism/optimism

op-node: modularize metrics

Open
#16,683 0 comments 0 reactions 0 assignees View on GitHub
A-op-node
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.