pub(crate) fn register<C: Collector + Clone + 'static>(collector: &C)Expand description
Registers collector in the default registry, replacing any collector already registered under
the same name.
The node creates a new MassaMetrics on every in-process restart (re-bootstrap after a desync).
Without the replacement the registration fails, and the endpoint keeps exporting the collectors
of the previous instance, frozen at their last value.