Skip to content

Commit

Permalink
vscode: add "source" field to executeCommand metric
Browse files Browse the repository at this point in the history
When a vscode command is executed it can be executed
from different places. The 'source' field will help
to identify what caused the command to execute.

Signed-off-by: nkomonen <[email protected]>
  • Loading branch information
nkomonen-amazon committed Nov 1, 2023
1 parent 89cf723 commit 9d4996b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions telemetry/definitions/vscodeDefinitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"type": "string",
"description": "The id of a VS Code command"
},
{
"name": "source",
"type": "string",
"description": "The root cause of the metric since there can be multiple sources that caused the metric."
},
{
"name": "debounceCount",
"type": "int",
Expand All @@ -35,6 +40,7 @@
"passive": true,
"metadata": [
{ "type": "command" },
{ "type": "source" },
{ "type": "debounceCount" },
{ "type": "duration" },
{ "type": "result" },
Expand Down

0 comments on commit 9d4996b

Please sign in to comment.