Skip to content

Commit

Permalink
Add telemetry when receiving corrupt data from Azure Copilot (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw authored Nov 13, 2024
1 parent 9aaefab commit c7cc185
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell/agents/Microsoft.Azure.Agent/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ private CorruptDataException(string message)

internal static CorruptDataException Create(string message, CopilotActivity activity)
{
return new CorruptDataException($"Unexpected copilot activity received. {message}\n\n{activity.Serialize()}\n");
string errorMessage = $"Unexpected copilot activity received. {message}\n\n{activity.Serialize()}\n";
Telemetry.Trace(AzTrace.Exception(errorMessage));
return new CorruptDataException(errorMessage);
}
}

Expand Down

0 comments on commit c7cc185

Please sign in to comment.