pub fn export_metrics() -> Result<String, String>
Exports the current Prometheus text exposition body.
Returns an error when metric families cannot be encoded as Prometheus text.