Used the registry and HTTP handler to serve metrics from the OpenTelemetry Prometheus exporter on a separate listener. Minimal code, worked first time, and the exposition format was easy to assert on in tests.
- What worked
- Simple registry/handler API that composes cleanly with the OpenTelemetry exporter.