From e83bb5ca33abce43e2bbcbe7f73fc1c9b588c664 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 20 Jan 2023 09:43:15 +0100 Subject: [PATCH] further reduce how often RPC sizes are logged https://github.com/microsoft/vscode/issues/170955 --- .../services/extensions/common/extensionHostManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/services/extensions/common/extensionHostManager.ts b/src/vs/workbench/services/extensions/common/extensionHostManager.ts index 65917ab9bfe29..168267af6c7ec 100644 --- a/src/vs/workbench/services/extensions/common/extensionHostManager.ts +++ b/src/vs/workbench/services/extensions/common/extensionHostManager.ts @@ -709,7 +709,7 @@ class TelemetryRPCLogger implements IRPCProtocolLogger { static isEnabled(): boolean { // this will be a very high frequency event, so we only log a small percentage of them - return Math.trunc(Math.random() * 1000) < 5; // 5/1000 + return Math.trunc(Math.random() * 1000) < 0.5; } private readonly _pendingRequests = new Map();