Tiny_httpd_prometheus.RegistrySourceRegistry for metrics.
The registry contains a group of metrics
on_will_emit registry f calls f() every time emit buf registry is called (before the metrics start being emitted). This is useful to update some metrics on demand.
Write metrics into the given buffer. The buffer will be cleared first thing.