[][src]Function stats::register_stats_manager_factory

pub fn register_stats_manager_factory(
    factory: impl StatsManagerFactory + Send + Sync + 'static
)

This function must be called exactly once before accessing any of the stats, otherwise it will panic. If it won't be called a default stats manager factory will be assumed that does nothing. (Facebook only: the default will use fb303 counters)