Skip to content

Commit

Permalink
Add telemetry for installation validation (#705)
Browse files Browse the repository at this point in the history
* Add installation validation tracking

* Include failed task name in validation telemetry
  • Loading branch information
webfiltered authored Jan 23, 2025
1 parent f1e44ff commit 8e4c801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/install/installationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export class InstallationManager {
// Load maintenance page the first time any error is found.
if (!this.#onMaintenancePage && Object.values(data).includes('error')) {
this.#onMaintenancePage = true;
const error = Object.entries(data).find(([, value]) => value === 'error')?.[0];
this.telemetry.track('validation:error_found', { error });

log.info('Validation error - loading maintenance page.');
this.appWindow.loadRenderer('maintenance').catch((error) => {
Expand Down

0 comments on commit 8e4c801

Please sign in to comment.