From 4fba3b39729b327f3b6c73403f28240f2a09db35 Mon Sep 17 00:00:00 2001 From: amitjoshi Date: Tue, 10 Sep 2024 17:33:24 +0530 Subject: [PATCH] refactor: Update telemetry events for @powerpages ecs --- .../chat-participants/powerpages/PowerPagesChatParticipant.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/chat-participants/powerpages/PowerPagesChatParticipant.ts b/src/common/chat-participants/powerpages/PowerPagesChatParticipant.ts index f038cdee..7947c7eb 100644 --- a/src/common/chat-participants/powerpages/PowerPagesChatParticipant.ts +++ b/src/common/chat-participants/powerpages/PowerPagesChatParticipant.ts @@ -110,7 +110,8 @@ export class PowerPagesChatParticipant { if (!isPowerPagesGitHubCopilotEnabled()) { stream.markdown(COPILOT_NOT_RELEASED_MSG); - this.telemetry.sendTelemetryErrorEvent(VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_NOT_AVAILABLE_ECS, { sessionId: this.powerPagesAgentSessionId, orgID: this.orgID }); + this.telemetry.sendTelemetryEvent(VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_NOT_AVAILABLE_ECS, { sessionId: this.powerPagesAgentSessionId, orgID: this.orgID }); + oneDSLoggerWrapper.getLogger().traceInfo(VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_NOT_AVAILABLE_ECS, { sessionId: this.powerPagesAgentSessionId, orgID: this.orgID }); return createSuccessResult('', RESPONSE_SCENARIOS.COPILOT_NOT_RELEASED, this.orgID); }