Add initial telemetry for schema compare (#5595)

* add initial telemetry to schema compare

* addressing comments
This commit is contained in:
kisantia
2019-05-24 15:32:23 -07:00
committed by GitHub
parent 85b2c4de4a
commit 3d494dcd73
4 changed files with 182 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import * as os from 'os';
import { SchemaCompareResult } from '../schemaCompareResult';
import { isNullOrUndefined } from 'util';
import { existsSync } from 'fs';
import { Telemetry } from '../telemetry';
const localize = nls.loadMessageBundle();
const OkButtonText: string = localize('schemaCompareDialog.ok', 'Ok');
@@ -137,6 +138,10 @@ export class SchemaCompareDialog {
};
}
Telemetry.sendTelemetryEvent('SchemaCompareStart', {
'sourceIsDacpac': this.sourceIsDacpac.toString(),
'targetIsDacpac': this.targetIsDacpac.toString()
});
let schemaCompareResult = new SchemaCompareResult(sourceName, targetName, sourceEndpointInfo, targetEndpointInfo);
schemaCompareResult.start();
}