add telemetry for saving publish profiles (#22933)

This commit is contained in:
Kim Santiago
2023-05-02 16:09:18 -07:00
committed by GitHub
parent e57fc9f202
commit ab44d205d0
2 changed files with 2 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ export enum TelemetryActions {
resetOptions = 'resetOptions',
optionsChanged = 'optionsChanged',
profileLoaded = 'profileLoaded',
profileSaved = 'profileSaved',
SchemaComparisonFinished = 'SchemaComparisonFinished',
SchemaComparisonStarted = 'SchemaComparisonStarted',
rename = "rename",

View File

@@ -868,6 +868,7 @@ export class PublishDatabaseDialog {
const targetDatabaseName = this.targetDatabaseName ?? '';
const deploymentOptions = await this.getDeploymentOptions();
await this.savePublishProfile(filePath.fsPath, targetDatabaseName, targetConnectionString, this.getSqlCmdVariablesForPublish(), deploymentOptions);
TelemetryReporter.sendActionEvent(TelemetryViews.SqlProjectPublishDialog, TelemetryActions.profileSaved);
}
this.profileUsed = true;