ithacaxyz / op-rs

Apache License 2.0
58 stars 6 forks source link

feat: telemetry stack #33

Closed merklefruit closed 2 months ago

merklefruit commented 2 months ago

Description

The rollup node should have telemetry for both debugging and prod usage. We should start with a standard fmt + prometheus stack to collect both traces and metrics:

CLI Configuration

Tasks

  1. Integrate metrics and metrics-exporter-prometheus.
  2. Set up Prometheus exposition and logging with fmt.
  3. Add CLI flags for telemetry control.
  4. Test and document the telemetry functionality.

NOTE: some metrics will be especially useful for debugging. Here is one example to keep in mind.