Skip to content

Commit 4b09167

Browse files
authored
fix(amazonq): adding logs for the agentic chat telemetry events (aws#7276)
## Problem - No logs is being emitted for telemetry events. ## Solution - Adding logs if telemetry events are emitted. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 05cde57 commit 4b09167

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/amazonq/src/lsp/chat/messages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export function registerLanguageServerEventListener(languageClient: LanguageClie
9494
const telemetryName: string = e.name
9595

9696
if (telemetryName in telemetry) {
97+
languageClient.info(`[Telemetry] Emitting ${telemetryName} telemetry: ${JSON.stringify(e.data)}`)
9798
telemetry[telemetryName as keyof TelemetryBase].emit(e.data)
9899
}
99100
})

0 commit comments

Comments
 (0)