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

Add telemetry to run simulator commands - #110

Merged
Luke Slevinsky (LukeSlev) merged 3 commits into
devfrom
users/t-luslev/run-simulator-telemetry
Aug 15, 2019
Merged

Luke Slevinsky (LukeSlev) merged 3 commits into
devfrom
users/t-luslev/run-simulator-telemetry

Conversation

@LukeSlev

Copy link
Copy Markdown
Member

Description:

This PR adds telemetry unique telemetry events for the different run simulator methods

Type of change

Please delete options that are not relevant.

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

Testing:

  • all 3 methods of running simulator have different telemetry events

Checklist:

  • My code follows the style guidelines of this project
  • 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

Comment thread package.json
"menus": {
"commandPalette": [
{
"command": "pacifica.runSimulatorEditorButton",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we don't want to expose the editor button command to the users via the command palette

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me. We'll be able to differentiate which method people prefer to use to run their code! I tried it out and works as expected. Events are logged to Applications Insights correctly. Just some typo suggestions.

Comment thread src/constants.ts Outdated
COMMAND_OPEN_SIMULATOR = "COMMAND.OPEN.SIMULATOR",
COMMAND_RUN_SIMULATOR = "COMMAND.RUN.SIMULATOR",
COMMAND_RUN_SIMULATOR_BUTTON = "COMMAND.RUN.SIMULATOR_BUTTON",
COMMAND_RUN_PALLETTE = "COMMAND.RUN.PALLETTE",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: Palette should only have 1 "l".

Suggested change
COMMAND_RUN_PALLETTE = "COMMAND.RUN.PALLETTE",
COMMAND_RUN_PALETTE = "COMMAND.RUN.PALETTE",

Comment thread src/extension.ts Outdated
() => {
telemetryAI.trackFeatureUsage(TelemetryEventName.COMMAND_RUN_EDITOR_ICON);
runSimulatorCommand();
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Missing semicolon.

Suggested change
})
});

Comment thread src/extension.ts Outdated
const runSimulator: vscode.Disposable = vscode.commands.registerCommand(
"pacifica.runSimulator",
() => {
telemetryAI.trackFeatureUsage(TelemetryEventName.COMMAND_RUN_PALLETTE);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Extra "l" in palette.

Suggested change
telemetryAI.trackFeatureUsage(TelemetryEventName.COMMAND_RUN_PALLETTE);
telemetryAI.trackFeatureUsage(TelemetryEventName.COMMAND_RUN_PALETTE);

@jonathanwangg
Jonathan Wang (jonathanwangg) deleted the users/t-luslev/run-simulator-telemetry branch August 26, 2019 09:14
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