MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / sendTelemetry

Function sendTelemetry

Extension/src/main.ts:222–247  ·  view source on GitHub ↗
(info: PlatformInformation)

Source from the content-addressed store, hash-verified

220}
221
222function sendTelemetry(info: PlatformInformation): void {
223 const telemetryProperties: { [key: string]: string } = {};
224 if (info.distribution) {
225 telemetryProperties['linuxDistroName'] = info.distribution.name;
226 telemetryProperties['linuxDistroVersion'] = info.distribution.version;
227 }
228 telemetryProperties['osArchitecture'] = os.arch();
229 telemetryProperties['infoArchitecture'] = info.architecture;
230 const targetPopulation: TargetPopulation = util.getCppToolsTargetPopulation();
231 switch (targetPopulation) {
232 case TargetPopulation.Public:
233 telemetryProperties['targetPopulation'] = "Public";
234 break;
235 case TargetPopulation.Internal:
236 telemetryProperties['targetPopulation'] = "Internal";
237 break;
238 case TargetPopulation.Insiders:
239 telemetryProperties['targetPopulation'] = "Insiders";
240 break;
241 default:
242 break;
243 }
244 telemetryProperties['appName'] = vscode.env.appName;
245 Telemetry.logDebuggerEvent("acquisition", telemetryProperties);
246 logMachineIdMappings().catch(logAndReturn.undefined);
247}
248
249async function checkVsixCompatibility(): Promise<void> {
250 const ignoreMismatchedCompatibleVsix: PersistentState<boolean> = new PersistentState<boolean>("CPP." + util.packageJson.version + ".ignoreMismatchedCompatibleVsix", false);

Callers 1

activateFunction · 0.70

Calls 2

logMachineIdMappingsFunction · 0.90
catchMethod · 0.45

Tested by

no test coverage detected