mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Update ads-extension-telemetry to 1.3.1 (#20724)
* Update ads-extension-telemetry to 1.3.0 * fix
This commit is contained in:
@@ -478,7 +478,7 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@microsoft/ads-extension-telemetry": "^1.2.0",
|
||||
"@microsoft/ads-extension-telemetry": "^1.3.1",
|
||||
"@xmldom/xmldom": "^0.8.2",
|
||||
"axios": "^0.27.2",
|
||||
"extract-zip": "^2.0.1",
|
||||
|
||||
@@ -9,7 +9,7 @@ import { getPackageInfo } from './utils';
|
||||
|
||||
const packageInfo = getPackageInfo()!;
|
||||
|
||||
export const TelemetryReporter = new AdsTelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);
|
||||
export const TelemetryReporter = new AdsTelemetryReporter<TelemetryViews, TelemetryActions>(packageInfo.name, packageInfo.version, packageInfo.aiKey);
|
||||
|
||||
|
||||
export enum TelemetryViews {
|
||||
@@ -45,5 +45,7 @@ export enum TelemetryActions {
|
||||
publishOptionsOpened = 'publishOptionsOpened',
|
||||
resetOptions = 'resetOptions',
|
||||
optionsChanged = 'optionsChanged',
|
||||
profileLoaded = 'profileLoaded'
|
||||
profileLoaded = 'profileLoaded',
|
||||
SchemaComparisonFinished = 'SchemaComparisonFinished',
|
||||
SchemaComparisonStarted = 'SchemaComparisonStarted'
|
||||
}
|
||||
|
||||
@@ -1602,7 +1602,7 @@ export class ProjectsController {
|
||||
target.targetScripts = await this.getProjectScriptFiles(target.projectFilePath);
|
||||
target.dataSchemaProvider = await this.getProjectDatabaseSchemaProvider(target.projectFilePath);
|
||||
|
||||
TelemetryReporter.sendActionEvent(TelemetryViews.ProjectController, 'SchemaComparisonStarted');
|
||||
TelemetryReporter.sendActionEvent(TelemetryViews.ProjectController, TelemetryActions.SchemaComparisonStarted);
|
||||
|
||||
// Perform schema comparison. Results are cached in SqlToolsService under the operationId
|
||||
const comparisonResult: mssql.SchemaCompareResult = await service.schemaCompare(
|
||||
@@ -1618,7 +1618,7 @@ export class ProjectsController {
|
||||
return;
|
||||
}
|
||||
|
||||
TelemetryReporter.createActionEvent(TelemetryViews.ProjectController, 'SchemaComparisonFinished')
|
||||
TelemetryReporter.createActionEvent(TelemetryViews.ProjectController, TelemetryActions.SchemaComparisonFinished)
|
||||
.withAdditionalProperties({
|
||||
'endTime': Date.now().toString(),
|
||||
'operationId': comparisonResult.operationId
|
||||
|
||||
@@ -240,10 +240,10 @@
|
||||
"@microsoft/applicationinsights-shims" "^2.0.1"
|
||||
"@microsoft/dynamicproto-js" "^1.1.6"
|
||||
|
||||
"@microsoft/ads-extension-telemetry@^1.2.0":
|
||||
version "1.2.0"
|
||||
resolved "https://registry.npmjs.org/@microsoft/ads-extension-telemetry/-/ads-extension-telemetry-1.2.0.tgz"
|
||||
integrity sha512-dEp+RVJYo4uebMLvBJqJF8IABufJRp+PWHZx+3xe6SgAC37oYhcwR/glExhp3Nj3A2v3vjso6YQ/Wd5TG27FPQ==
|
||||
"@microsoft/ads-extension-telemetry@^1.3.1":
|
||||
version "1.3.1"
|
||||
resolved "https://registry.yarnpkg.com/@microsoft/ads-extension-telemetry/-/ads-extension-telemetry-1.3.1.tgz#fa757ee88eac91b21c3a68562da6441c2ad15c39"
|
||||
integrity sha512-8Zd7RwwN7ZufMoWFmc1bwzmQc1RV7/jf/Ua33YL1+P0ZwHoWFOhf/b0lwvAVzi9TB/7oD5zA5yv7A/i2sSTn6Q==
|
||||
dependencies:
|
||||
"@vscode/extension-telemetry" "^0.6.2"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user