Skip to content

Commit

Permalink
Add machineId to common telemetry properties
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Jul 18, 2024
1 parent bf8ada6 commit 10e0d77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion vscode/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export async function openFile(
type: "counter",
attributes: {
label: "open_file",
vscodemachineid: vscode.env.machineId,
},
});
}
Expand Down
1 change: 1 addition & 0 deletions vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ async function createLogger(context: vscode.ExtensionContext) {
additionalCommonProperties: {
extensionVersion: context.extension.packageJSON.version,
environment: os.platform(),
machienId: vscode.env.machineId,
},
});
}
5 changes: 2 additions & 3 deletions vscode/src/testController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export class TestController {
type: "counter",
attributes: {
label: "test_in_terminal",
vscodemachineid: vscode.env.machineId,
},
});
}
Expand Down Expand Up @@ -231,7 +230,7 @@ export class TestController {

this.telemetry.logUsage("ruby_lsp.code_lens", {
type: "counter",
attributes: { label: "debug", vscodemachineid: vscode.env.machineId },
attributes: { label: "debug" },
});
}

Expand Down Expand Up @@ -323,7 +322,7 @@ export class TestController {

this.telemetry.logUsage("ruby_lsp.code_lens", {
type: "counter",
attributes: { label: "test", vscodemachineid: vscode.env.machineId },
attributes: { label: "test" },
});
}

Expand Down

0 comments on commit 10e0d77

Please sign in to comment.