Repository URL to install this package:
|
Version:
1.9.1-1486597190 ▾
|
code
/
usr
/
share
/
code
/
resources
/
app
/
extensions
/
markdown
/
node_modules
/
vscode-extension-telemetry
|
|---|
| .. |
| lib |
| package.json |
| README.md |
| LICENSE |
| thirdpartynotices.txt |
This module provides a consistent way for first-party extensions to report telemetry over Application Insights.
npm install vscode-extension-telemetry
let TelemetryReporter = require('vscode-extension-telemetry'); // all events will be prefixed with this event name const extensionId = '<your extension unique name>'; // extension version will be reported as a property with each event const extensionVersion = '<your extension version>'; // the application insights key const key = '<you key>'; let reporter = new TelemetryReporter(extensionId, extensionVersion, key); reporter.sendTelemetryEvent('sampleEvent', { 'stringProp': 'some string' }, { 'numericMeasure': 123});
common.extnamecommon.extversioncommon.vscodemachineidcommon.vscodesessionidcommon.vscodeversioncommon.oscommon.osversioncommon.sqmidcommon.sqmmachineid