Skip to content

Commit

Permalink
refactor: attach tenant id parameter in switch tenant event (#12855)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuihuiWu-Microsoft authored Dec 5, 2024
1 parent 2c8c0b1 commit 28efe82
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export async function onSwitchM365Tenant(...args: unknown[]): Promise<void> {
if (switchRes.isOk()) {
ExtTelemetry.sendTelemetryEvent(TelemetryEvent.SwitchTenant, {
[TelemetryProperty.AccountType]: AccountType.M365,
[TelemetryProperty.TenantId]: result.value.result as string,
...getTriggerFromProperty(args),
});
return;
Expand Down Expand Up @@ -118,6 +119,7 @@ export async function onSwitchAzureTenant(...args: unknown[]): Promise<void> {
if (switchRes.isOk()) {
ExtTelemetry.sendTelemetryEvent(TelemetryEvent.SwitchTenant, {
[TelemetryProperty.AccountType]: AccountType.Azure,
[TelemetryProperty.TenantId]: result.value.result as string,
...getTriggerFromProperty(args),
});
return;
Expand Down

0 comments on commit 28efe82

Please sign in to comment.