Add telemetry for schema compare and sql database projects options dialogs (#19799)

* add more telemetry for schema compare and sql projects options dialogs

* cleanup

* change to sendActionEvent
This commit is contained in:
Kim Santiago
2022-06-22 13:31:28 -07:00
committed by GitHub
parent c24305f9d8
commit a3cad2378c
5 changed files with 22 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import * as loc from '../localizedConstants';
import { SchemaCompareMainWindow } from '../schemaCompareMainWindow';
import { isNullOrUndefined } from 'util';
import { SchemaCompareOptionsModel } from '../models/schemaCompareOptionsModel';
import { TelemetryReporter, TelemetryViews } from '../telemetry';
export class SchemaCompareOptionsDialog {
public dialog: azdata.window.Dialog;
@@ -82,7 +83,10 @@ export class SchemaCompareOptionsDialog {
this.schemaComparison.startCompare();
}
});
TelemetryReporter.sendActionEvent(TelemetryViews.SchemaCompareOptionsDialog, 'OptionsChanged');
}
this.disposeListeners();
}
@@ -106,6 +110,8 @@ export class SchemaCompareOptionsDialog {
await this.updateObjectsTable();
this.objectTypesFlexBuilder.removeItem(this.objectsTable);
this.objectTypesFlexBuilder.addItem(this.objectsTable, { CSSStyles: { 'overflow': 'scroll', 'height': '80vh' } });
TelemetryReporter.sendActionEvent(TelemetryViews.SchemaCompareOptionsDialog, 'ResetOptions');
}
private initializeSchemaCompareOptionsDialogTab(): void {