diff --git a/shell/agents/Microsoft.Azure.Agent/Telemetry.cs b/shell/agents/Microsoft.Azure.Agent/Telemetry.cs index 6eb31c82..22466a9f 100644 --- a/shell/agents/Microsoft.Azure.Agent/Telemetry.cs +++ b/shell/agents/Microsoft.Azure.Agent/Telemetry.cs @@ -143,16 +143,13 @@ internal static AzTrace Chat(CopilotResponse response) return null; } - internal static AzTrace Exception(CopilotResponse response, object details) + internal static AzTrace Exception(object details) { if (Telemetry.Enabled) { return new() { - EventType = "Exception", - QueryId = response?.ReplyToId, - TopicName = response?.TopicName, - ConversationId = response?.ConversationId, + EventType = "AIShell Exception", Details = details }; } @@ -160,8 +157,6 @@ internal static AzTrace Exception(CopilotResponse response, object details) // Don't create an object when telemetry is disabled. return null; } - - internal static AzTrace Exception(object details) => Exception(response: null, details); } internal class Telemetry