Skip to content

Commit e1c2e7e

Browse files
authored
chat - log failedEnterpriseSetup during setup (microsoft#259785)
1 parent 704dd68 commit e1c2e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatSetup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ type InstallChatClassification = {
11681168
provider: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The provider used for the chat installation.' };
11691169
};
11701170
type InstallChatEvent = {
1171-
installResult: 'installed' | 'alreadyInstalled' | 'cancelled' | 'failedInstall' | 'failedNotSignedIn' | 'failedSignUp' | 'failedNotTrusted' | 'failedNoSession' | 'failedMaybeLater';
1171+
installResult: 'installed' | 'alreadyInstalled' | 'cancelled' | 'failedInstall' | 'failedNotSignedIn' | 'failedSignUp' | 'failedNotTrusted' | 'failedNoSession' | 'failedMaybeLater' | 'failedEnterpriseSetup';
11721172
installDuration: number;
11731173
signUpErrorCode: number | undefined;
11741174
provider: string | undefined;
@@ -1308,7 +1308,6 @@ class ChatSetupController extends Disposable {
13081308
const provider = options.useSocialProvider ?? options.useEnterpriseProvider ? defaultChat.provider.enterprise.id : defaultChat.provider.default.id;
13091309

13101310
try {
1311-
13121311
if (
13131312
entitlement !== ChatEntitlement.Free && // User is not signed up to Copilot Free
13141313
!isProUser(entitlement) && // User is not signed up for a Copilot subscription
@@ -1416,6 +1415,7 @@ class ChatSetupController extends Disposable {
14161415
if (options.useEnterpriseProvider) {
14171416
const success = await this.handleEnterpriseInstance();
14181417
if (!success) {
1418+
this.telemetryService.publicLog2<InstallChatEvent, InstallChatClassification>('commandCenter.chatInstall', { installResult: 'failedEnterpriseSetup', installDuration: 0, signUpErrorCode: undefined, provider: undefined });
14191419
return success; // not properly configured, abort
14201420
}
14211421
}

0 commit comments

Comments
 (0)