Remove error message properties from events (#14175)

This commit is contained in:
Charles Gagnon
2021-02-05 12:28:07 -08:00
committed by GitHub
parent ddd80b982c
commit ac5ff2ec7f

View File

@@ -128,7 +128,6 @@ export class ProjectsController {
return project.dacpacOutputPath;
} catch (err) {
TelemetryReporter.createErrorEvent(TelemetryViews.ProjectController, TelemetryActions.build)
.withAdditionalProperties({ error: utils.getErrorMessage(err) })
.withAdditionalMeasurements({ duration: new Date().getMilliseconds() - startTime.getMilliseconds() })
.send();
@@ -203,7 +202,6 @@ export class ProjectsController {
const actionEndTime = new Date().getMilliseconds();
telemetryProps.actionDuration = (actionEndTime - actionStartTime).toString();
telemetryProps.totalDuration = (actionEndTime - buildStartTime).toString();
telemetryProps.errorMessage = utils.getErrorMessage(err);
TelemetryReporter.createErrorEvent(TelemetryViews.ProjectController, TelemetryActions.publishProject)
.withAdditionalProperties(telemetryProps)