Skip to content

Commit 8ad1bb7

Browse files
Add subscriptionId and resourceId to telemetry (#4397)
1 parent becd8fd commit 8ad1bb7

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@
13481348
"@microsoft/vscode-azext-azureappsettings": "^0.2.2",
13491349
"@microsoft/vscode-azext-azureutils": "^3.1.3",
13501350
"@microsoft/vscode-azext-serviceconnector": "^0.1.3",
1351-
"@microsoft/vscode-azext-utils": "^2.5.7",
1351+
"@microsoft/vscode-azext-utils": "^2.6.2",
13521352
"@microsoft/vscode-azureresources-api": "^2.0.4",
13531353
"cross-fetch": "^4.0.0",
13541354
"escape-string-regexp": "^4.0.0",

src/commands/SubscriptionListStep.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class SubscriptionListStep extends AzureWizardPromptStep<IFuncDeployConte
1414
private _oneSubscription: boolean = false;
1515
public async prompt(context: IFuncDeployContext): Promise<void> {
1616
context.subscription = (await context.ui.showQuickPick(this._picks, { placeHolder: l10n.t("Select a subscription") })).data;
17+
context.telemetry.properties.subscriptionId = context.subscription.subscriptionId;
1718
}
1819

1920
public shouldPrompt(_: IFuncDeployContext): boolean {

src/commands/deploy/FunctionAppListStep.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { type IFuncDeployContext } from "./deploy";
1717
export class FunctionAppListStep extends AzureWizardPromptStep<IFuncDeployContext> {
1818
public async prompt(context: IFuncDeployContext): Promise<void> {
1919
context.site = (await context.ui.showQuickPick(this.getPicks(context), { placeHolder: vscode.l10n.t("Select a function app") })).data;
20+
context.telemetry.properties.resourceId = context.site?.id;
2021
}
2122

2223
public shouldPrompt(context: IFuncDeployContext): boolean {

0 commit comments

Comments
 (0)