This bounty is no longer available
Web3 DAO | Optimism Logo

op-service metrics: cleanup metrics setup utils

Organization

Optimism

Deadline

N/A

Status

ENDED


INSTRUCTIONS

  • [ ] metrics-docs should be generalized, but currently op-proposer and op-batcher duplicate the cmd/doc metrics-doc-generator functionality.
  • [ ] CLI flags should use cli.GenericFlag
  • [ ] Move op-node/metrics/{caching.go,events.go} into op-service/metrics

This was implemented partially in https://github.com/ethereum-optimism/optimism/pull/6242 but that prematurely introduced an App abstraction, which we should only introduce once the other op-service issues are cleaned up, and we can provide a more consistent app pattern that captures all of the op-service functionality.