pub(crate) fn spawn_statistics_scraper<StatsWrapper, Stats, T>(
    statistics_collection_id: GlobalId,
    collection_mgmt: CollectionManager<T>,
    shared_stats: Arc<Mutex<StatsWrapper>>,
    previous_values: Vec<Row>,
    initial_interval: Duration,
    interval_updated: Receiver<Duration>,
    metrics: StorageControllerMetrics,
) -> Box<dyn Any + Send + Sync>
where StatsWrapper: AsStats<Stats> + Debug + Send + 'static, Stats: PackableStats + Clone + Debug + Send + 'static, T: Timestamp + Lattice + Codec64 + From<EpochMillis> + TimestampManipulation,
Expand description

Spawns a task that continually (at an interval) writes statistics from storaged’s that are consolidated in shared memory in the controller.