vscode-extension-telemetry
This module provides a consistent way for first-party extensions to report telemetry over Application Insights.
install
npm install vscode-extension-telemetry
usage
let TelemetryReporter = require('vscode-extension-telemetry');
const extensionId = '<your extension unique name>';
const extensionVersion = '<your extension version>';
const key = '<you key>';
let reporter = new TelemetryReporter(extensionId, extensionVersion, key);
reporter.sendTelemetryEvent('sampleEvent', { 'stringProp': 'some string' }, { 'numericMeasure': 123});
common properties
common.vscodemachineid
common.vscodesessionid
common.os
common.osversion
common.sqmuserid
common.sqmmachineid
License
MIT