pub async fn register_metrics_into(
metrics_registry: &MetricsRegistry,
config_set: ConfigSet,
)
Expand description
Register all metrics into the provided registry.
We do not recommend calling this function multiple times. It is safe to call this function, but it might delete previous metrics. If we ever want to change this, we should remove the shared static mutex and make this function return a handle to the metrics.
This function is async, because it needs to be called from a tokio runtime context.