@@ -18,8 +18,7 @@ import { isEmpty, mapValues } from 'lodash';
1818import { SavedObjectsClient } from '../../../../src/core/server' ;
1919import { mappingFromFieldMap } from '../../rule_registry/common/mapping_from_field_map' ;
2020import { Dataset } from '../../rule_registry/server' ;
21- import { /*APMConfig,*/ APMConfig , APM_SERVER_FEATURE_ID } from '.' ;
22- // import { getFullPathConfigs } from './index';
21+ import { APMConfig , APM_SERVER_FEATURE_ID } from '.' ;
2322import { UI_SETTINGS } from '../../../../src/plugins/data/common' ;
2423import { APM_FEATURE , registerFeaturesUsage } from './feature' ;
2524import { registerApmAlerts } from './lib/alerts/register_apm_alerts' ;
@@ -73,30 +72,21 @@ export class APMPlugin
7372 ) {
7473 this . logger = this . initContext . logger . get ( ) ;
7574 const config$ = this . initContext . config . create < APMConfig > ( ) ;
76- // const mergedConfig$ = config$.pipe(
77- // map((apmConfig) => getFullPathConfigs(apmConfig))
78- // );
7975
8076 core . savedObjects . registerType ( apmIndices ) ;
8177 core . savedObjects . registerType ( apmTelemetry ) ;
8278 core . savedObjects . registerType ( apmServerSettings ) ;
8379
84- // const currentConfig = getFullPathConfigs(
85- // this.initContext.config.get<APMConfig>()
86- // );
87- // this.currentConfig = currentConfig;
8880 const currentConfig = this . initContext . config . get < APMConfig > ( ) ;
8981 this . currentConfig = currentConfig ;
9082
9183 if (
9284 plugins . taskManager &&
9385 plugins . usageCollection &&
9486 currentConfig . telemetryCollectionEnabled
95- // currentConfig['xpack.apm.telemetryCollectionEnabled']
9687 ) {
9788 createApmTelemetry ( {
9889 core,
99- // config$: mergedConfig$,
10090 config$,
10191 usageCollector : plugins . usageCollection ,
10292 taskManager : plugins . taskManager ,
0 commit comments