Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vscode-extension-telemetry

Package Overview
Dependencies
Maintainers
6
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-extension-telemetry - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

28

lib/telemetryReporter.d.ts

@@ -12,7 +12,35 @@ /*---------------------------------------------------------

export default class TelemetryReporter {
/**
* @param extensionId The id of your extension
* @param extensionVersion The version of your extension
* @param key The app insights key
* @param firstParty Whether or not the telemetry is first party (i.e from Microsoft / GitHub)
*/
constructor(extensionId: string, extensionVersion: string, key: string, firstParty?: boolean);
/**
* Sends a telemetry event with the given properties and measurements
* @param eventName The name of the event
* @param properties The set of properties to add to the event in the form of a string key value pair
* @param measurements The set of measurements to add to the event in the form of a string key number value pair
*/
sendTelemetryEvent(eventName: string, properties?: TelemetryEventProperties, measurements?: TelemetryEventMeasurements): void;
/**
* Sends a telemetry error event with the given properties, measurements, and errorProps
* @param eventName The name of the event
* @param properties The set of properties to add to the event in the form of a string key value pair
* @param measurements The set of measurements to add to the event in the form of a string key number value pair
* @param errorProps A list of case sensitive properties to drop, if excluded we drop all properties but still send the event
*/
sendTelemetryErrorEvent(eventName: string, properties?: TelemetryEventProperties, measurements?: TelemetryEventMeasurements, errorProps?: string[]): void;
/**
* Sends an exception which includes the error stack, properties, and measurements
* @param error The error to send
* @param properties The set of properties to add to the event in the form of a string key value pair
* @param measurements The set of measurements to add to the event in the form of a string key number value pair
*/
sendTelemetryException(error: Error, properties?: TelemetryEventProperties, measurements?: TelemetryEventMeasurements): void;
dispose(): Promise<any>;
}

2

package.json
{
"name": "vscode-extension-telemetry",
"description": "A module for first party microsoft extensions to report consistent telemetry.",
"version": "0.3.1",
"version": "0.3.2",
"author": {

@@ -6,0 +6,0 @@ "name": "Microsoft Corporation"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc