Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions shell/agents/Microsoft.Azure.Agent/Telemetry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,25 +143,20 @@ 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
};
}

// Don't create an object when telemetry is disabled.
return null;
}

internal static AzTrace Exception(object details) => Exception(response: null, details);
}

internal class Telemetry
Expand Down