Add telemetry to troubleshoot customer issues (#17748)

* Add telemetry to troubleshoot customer issues

* Updating logerror method calls with custom errors

* Add performance telemetry
This commit is contained in:
goyal-anjali
2021-12-06 11:39:41 +05:30
committed by GitHub
parent 8d8b3983a9
commit 80541ce6f0
9 changed files with 51 additions and 21 deletions

View File

@@ -13,6 +13,7 @@ import * as constants from '../constants/strings';
import { WIZARD_INPUT_COMPONENT_WIDTH } from './wizardController';
import { getFullResourceGroupFromId, getLocationDisplayName, getSqlMigrationService, getSqlMigrationServiceAuthKeys, getSqlMigrationServiceMonitoringData, SqlManagedInstance, SqlVMServer } from '../api/azure';
import { IconPathHelper } from '../constants/iconPathHelper';
import { logError, TelemetryViews } from '../telemtery';
import { findDropDownItemIndex, selectDropDownIndex } from '../api/utils';
import * as styles from '../constants/styles';
@@ -428,7 +429,7 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
try {
await this.loadStatus();
} catch (error) {
console.log(error);
logError(TelemetryViews.MigrationWizardIntegrationRuntimePage, 'ErrorLoadingMigrationServiceStatus', error);
} finally {
this._statusLoadingComponent.loading = false;
}
@@ -507,7 +508,7 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
await this._authKeyTable.setDataValues(data);
}
} catch (e) {
console.log(e);
logError(TelemetryViews.IntegrationRuntimePage, 'ErrorLoadingStatus', e);
}
}
}