Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Added telemetry to typescript side of extension #211

Merged
merged 7 commits into from
Feb 20, 2020

Conversation

vandyliu
Copy link
Contributor

Description:

  • Added telemetry to typescript side of extension
  • Renamed some of the telemetry events

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Limitations:

Please describe limitations of this PR

Testing:

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • My code has been formatted with npm run format and passes the checks in npm run check
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

src/extension.ts Outdated
@@ -172,7 +172,20 @@ export async function activate(context: vscode.ExtensionContext) {
switch (message.command) {
case WEBVIEW_MESSAGES.BUTTON_PRESS:
// Send input to the Python process
handleButtonPressTelemetry(message.text);
switch (currentActiveDevice) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if there is a better way to do this, then switch cases everywhere. It might become heavy when we have more devices. Potentially wrapper function or maybe adding an argument to the telemetry event if that is possible

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great suggestion. I updated it. Lmk what u think

Copy link
Collaborator

@sagarmanchanda sagarmanchanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+100 on the telemetry integration :D

Copy link
Contributor

@xnkevinnguyen xnkevinnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vandyliu vandyliu merged commit 797edbe into dev Feb 20, 2020
@vandyliu vandyliu deleted the users/t-vali/add-new-telemetry branch February 20, 2020 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants