Improve metrics hook setup #12672
Labels
C-debt
Refactor of code section that is hard to understand or maintain
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
currently we do:
reth/crates/node/metrics/src/hooks.rs
Lines 24 to 26 in 3408059
which makes the metrics crate depend on
reth/crates/node/metrics/src/hooks.rs
Line 4 in 3408059
we can improve this api with a builder API
and replace the new function
reth/crates/node/metrics/src/hooks.rs
Line 30 in 3408059
with something like
then we need to change how this type is instantiated and effectively push these:
reth/crates/node/metrics/src/hooks.rs
Lines 36 to 41 in 3408059
to the callsite
Additional context
No response
The text was updated successfully, but these errors were encountered: