mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 01:25:36 -05:00
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:
@@ -5,7 +5,7 @@
|
||||
|
||||
import { getMigrationStatus, DatabaseMigration, startMigrationCutover, stopMigration, getMigrationAsyncOperationDetails, AzureAsyncOperationResource, BackupFileInfo, getResourceGroupFromId } from '../../api/azure';
|
||||
import { BackupFileInfoStatus, MigrationContext } from '../../models/migrationLocalStorage';
|
||||
import { sendSqlMigrationActionEvent, TelemetryAction, TelemetryViews } from '../../telemtery';
|
||||
import { logError, sendSqlMigrationActionEvent, TelemetryAction, TelemetryViews } from '../../telemtery';
|
||||
import * as constants from '../../constants/strings';
|
||||
import { EOL } from 'os';
|
||||
import { getMigrationTargetType, getMigrationMode } from '../../constants/helper';
|
||||
@@ -71,7 +71,7 @@ export class MigrationCutoverDialogModel {
|
||||
}
|
||||
} catch (error) {
|
||||
this.CutoverError = error;
|
||||
console.log(error);
|
||||
logError(TelemetryViews.MigrationCutoverDialog, 'StartCutoverError', error);
|
||||
}
|
||||
return undefined!;
|
||||
}
|
||||
@@ -111,7 +111,7 @@ export class MigrationCutoverDialogModel {
|
||||
}
|
||||
} catch (error) {
|
||||
this.CancelMigrationError = error;
|
||||
console.log(error);
|
||||
logError(TelemetryViews.MigrationCutoverDialog, 'CancelMigrationError', error);
|
||||
}
|
||||
return undefined!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user