Support proxies in the telemetry service (#187952)

This commit is contained in:
Logan Ramos
2023-07-14 11:53:47 -07:00
committed by GitHub
parent 5eb82ae6c4
commit ef42b49e80
5 changed files with 84 additions and 22 deletions
+3 -2
View File
@@ -192,7 +192,8 @@ class CliMain extends Disposable {
services.set(IUriIdentityService, new UriIdentityService(fileService));
// Request
services.set(IRequestService, new SyncDescriptor(RequestService, undefined, true));
const requestService = new RequestService(configurationService, environmentService, logService, loggerService);
services.set(IRequestService, requestService);
// Download Service
services.set(IDownloadService, new SyncDescriptor(DownloadService, undefined, true));
@@ -212,7 +213,7 @@ class CliMain extends Disposable {
const isInternal = isInternalTelemetry(productService, configurationService);
if (supportsTelemetry(productService, environmentService)) {
if (productService.aiConfig && productService.aiConfig.ariaKey) {
appenders.push(new OneDataSystemAppender(isInternal, 'monacoworkbench', null, productService.aiConfig.ariaKey));
appenders.push(new OneDataSystemAppender(requestService, isInternal, 'monacoworkbench', null, productService.aiConfig.ariaKey));
}
const config: ITelemetryServiceConfig = {