Skip to content

Commit

Permalink
[Loggers] Rename "telemetry" to "usage" (#78130)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
afharo and elasticmachine authored Oct 1, 2020
1 parent 4c9a7bd commit 9fdb237
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class SampleDataRegistry {
}
const usageTracker = usage(
core.getStartServices().then(([coreStart]) => coreStart.savedObjects),
this.initContext.logger.get('sample_data', 'telemetry')
this.initContext.logger.get('sample_data', 'usage')
);
const router = core.http.createRouter();
createListRoute(router, this.sampleDatasets);
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/actions/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class ActionsPlugin implements Plugin<Promise<PluginSetupContract>, Plugi
.toPromise();

this.logger = initContext.logger.get('actions');
this.telemetryLogger = initContext.logger.get('telemetry');
this.telemetryLogger = initContext.logger.get('usage');
this.preconfiguredActions = [];
}

Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/alerts/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class AlertingPlugin {
this.logger = initializerContext.logger.get('plugins', 'alerting');
this.taskRunnerFactory = new TaskRunnerFactory();
this.alertsClientFactory = new AlertsClientFactory();
this.telemetryLogger = initializerContext.logger.get('telemetry');
this.telemetryLogger = initializerContext.logger.get('usage');
this.kibanaIndex = initializerContext.config.legacy.globalConfig$
.pipe(
first(),
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/lens/server/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class LensServerPlugin implements Plugin<{}, {}, {}, {}> {

constructor(initializerContext: PluginInitializerContext) {
this.kibanaIndexConfig = initializerContext.config.legacy.globalConfig$;
this.telemetryLogger = initializerContext.logger.get('telemetry');
this.telemetryLogger = initializerContext.logger.get('usage');
}
setup(core: CoreSetup<PluginStartContract>, plugins: PluginSetupContract) {
setupSavedObjects(core);
Expand Down

0 comments on commit 9fdb237

Please sign in to comment.