-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension needs to listen to LS telemetry #2940
Comments
FWIW it'd be good to know if there's some specific schema that this event needs to be providing to mesh with the telemetry that the extension is already sending. The LSP spec defines the telemetry event to just include an arbitrary object, so if there's a specific format needed in practice that'd be great to know. |
@jakebailey - AFAIK it is /**
* Sends a telemetry event
* @param {string} eventName The event name
* @param {object} properties An associative array of strings
* @param {object} measures An associative array of numbers
*/
// tslint:disable-next-line:member-access
public sendTelemetryEvent(eventName: string, properties?: {
[key: string]: string;
}, measures?: {
[key: string]: number;
// tslint:disable-next-line:no-empty
}): void; Event name will be 'Microsoft Python Language Server'. Data then can be either string or dictionary. |
The event name might need to be more specific. Take the bit that actually starts the language server: and the constants: But we can definitely upgrade from [Serializable]
public struct TelemetryEvent {
public string eventName;
public Dictionary<string, string> properties;
public Dictionary<string, int> measures; // TS "number" is more than just int, though.
} |
It appears that all the LSP message
telemetry/event
does is to fire event back on the extension which then should be submitting telemetry to the VS Code API.The text was updated successfully, but these errors were encountered: