/// <inheritdoc/> public void OnParseCommandLineFailure(CommandLineParsingTelemetryData telemetryData) { PostTelemetryData(telemetryData); #if TELEMETRY_TRACE && DEBUG System.Diagnostics.Trace.WriteLine("Recording CommandLineParsing"); #endif }
/// <summary> /// Sends the telemetry with the command line parsing information. /// </summary> private void SendTelemetry(CommandLineParsingTelemetryData telemetryData) { var properties = CreateProperties(telemetryData, client: null); properties.Add("Exception", AzPredictorTelemetryClient.FormatException(telemetryData.Exception)); properties.Add("Command", telemetryData.Command); SendTelemetry($"{TelemetryUtilities.TelemetryEventPrefix}/ParseCommandLineFailure", properties); }