Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
code / usr / share / code / resources / app / extensions / json / node_modules / vscode-extension-telemetry
  ..
  lib
  package.json
  README.md
  LICENSE
  thirdpartynotices.txt
Size: Mime:

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'); 

// 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 properties

  • common.extname
  • common.extversion
  • common.vscodemachineid
  • common.vscodesessionid
  • common.vscodeversion
  • common.os
  • common.osversion
  • common.sqmid
  • common.sqmmachineid

License

MIT