mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 09:35:40 -05:00
[SQL Migration] Remove noisy telemetry error event (#23348)
* Remove RefreshDataCollectionFailed * Fix timer initialization * Add refresh
This commit is contained in:
@@ -659,7 +659,7 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
|
||||
void vscode.window.showInformationMessage(constants.AZURE_RECOMMENDATION_START_POPUP);
|
||||
|
||||
await this.startSkuTimers(page, this.refreshPerfDataCollectionFrequency);
|
||||
await this.startSkuTimers(page);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
@@ -688,7 +688,7 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
}
|
||||
}
|
||||
|
||||
public async startSkuTimers(page: SKURecommendationPage, refreshIntervalInMs: number): Promise<void> {
|
||||
public async startSkuTimers(page: SKURecommendationPage): Promise<void> {
|
||||
const classVariable = this;
|
||||
|
||||
if (!this._autoRefreshPerfDataCollectionHandle) {
|
||||
@@ -701,7 +701,7 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
await page.refreshSkuRecommendationComponents(); // update timer
|
||||
}
|
||||
},
|
||||
refreshIntervalInMs);
|
||||
this.refreshPerfDataCollectionFrequency);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -773,7 +773,7 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
logError(TelemetryViews.DataCollectionWizard, 'RefreshDataCollectionFailed', error);
|
||||
console.log(error); // use console.log() instead of logError() to avoid spamming telemetry with this error, which can be frequent
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user