debt - use ITelemetryAppender interface (#167067)

//cc @lramos15
This commit is contained in:
Benjamin Pasero
2022-11-23 17:01:54 +01:00
committed by GitHub
parent 45b5568e7d
commit d5e5981ac7
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ import { StateService } from 'vs/platform/state/node/stateService';
import { resolveCommonProperties } from 'vs/platform/telemetry/common/commonProperties';
import { ITelemetryService, machineIdKey } from 'vs/platform/telemetry/common/telemetry';
import { ITelemetryServiceConfig, TelemetryService } from 'vs/platform/telemetry/common/telemetryService';
import { supportsTelemetry, NullTelemetryService, getPiiPathsFromEnvironment, isInternalTelemetry } from 'vs/platform/telemetry/common/telemetryUtils';
import { supportsTelemetry, NullTelemetryService, getPiiPathsFromEnvironment, isInternalTelemetry, ITelemetryAppender } from 'vs/platform/telemetry/common/telemetryUtils';
import { OneDataSystemAppender } from 'vs/platform/telemetry/node/1dsAppender';
import { buildTelemetryMessage } from 'vs/platform/telemetry/node/telemetry';
import { IUriIdentityService } from 'vs/platform/uriIdentity/common/uriIdentity';
@@ -105,7 +105,7 @@ class CliMain extends Disposable {
});
}
private async initServices(): Promise<[IInstantiationService, OneDataSystemAppender[]]> {
private async initServices(): Promise<[IInstantiationService, ITelemetryAppender[]]> {
const services = new ServiceCollection();
// Product
@@ -190,7 +190,7 @@ class CliMain extends Disposable {
services.set(ILanguagePackService, new SyncDescriptor(NativeLanguagePackService, undefined, false));
// Telemetry
const appenders: OneDataSystemAppender[] = [];
const appenders: ITelemetryAppender[] = [];
const isInternal = isInternalTelemetry(productService, configurationService);
if (supportsTelemetry(productService, environmentService)) {
if (productService.aiConfig && productService.aiConfig.ariaKey) {