pub fn metrics_hooks<N>(provider_factory: &ProviderFactory<N>) -> Hookswhere
N: NodeTypesWithDB,Expand description
Returns the metrics hooks for the node.
The storage hooks walk their backing store, which scales with the dataset, so they are registered as background hooks: metrics collection still refreshes them at most every 5 minutes, but renders the values of the previous refresh instead of waiting for the walk.