Function iota_metrics::init_metrics

source ยท
pub fn init_metrics(registry: &Registry)
Expand description

Initializes the global METRICS instance by setting it to a new Metrics object registered with the provided Registry. If METRICS is already set, a warning is logged indicating that the metrics registry was overwritten. This function is intended to be called once during initialization to set up metrics collection.