Add isSignedIn to config reload telemetry (#8185)

This commit is contained in:
Nate Sesti 2025-10-10 08:30:47 -07:00 • committed by GitHub
parent 64b7061618
commit 16a3b978e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -537,6 +537,7 @@ export class ConfigHandler {
// Track config loading telemetry
const endTime = performance.now();
const duration = endTime - startTime;
const isSignedIn = await this.controlPlaneClient.isSignedIn();
const profileDescription = this.currentProfile.profileDescription;
const telemetryData: Record<string, any> = {
@ -547,6 +548,7 @@ export class ConfigHandler {
profileType: profileDescription.profileType,
isPersonalOrg: this.currentOrg?.id === this.PERSONAL_ORG_DESC.id,
errorCount: errors.length,
isSignedIn,
};
void Telemetry.capture("config_reload", telemetryData);