import { UsageCollectionSetup } from 'src/plugins/usage_collection/server' ; import { getUsageCollector } from './get_usage_collector' ; export function registerCollector ( collectorSet ) { const collectorName = 'some_configs' ; const collector = collectorSet . makeUsageCollector ( getUsageCollector ( collectorName ) ) ; collectorSet . registerCollector ( collector ) ; }