//! `GET /metrics` handler — Prometheus text format export.
//!
//! Implements RFC 401. Returns all registered metrics in the Prometheus
//! text exposition format (version 0.0.4).
//!
//! Access restriction: document at the proxy layer, same as `/readyz`.
use Arc;
use ;
use crate::;
/// Prometheus metrics endpoint.
///
/// Returns 200 with `Content-Type: text/plain; version=0.0.4` on success,
/// or 500 with a plain error message if serialization fails.
pub async