From a233ef28828dbb5d145c66437c846e12a3e0fedb Mon Sep 17 00:00:00 2001 From: Avi Alpert Date: Tue, 11 Mar 2025 11:15:54 -0400 Subject: [PATCH] telemetry(amazonq): remove amazonq_addMessage from overrides --- package-lock.json | 9 +- package.json | 2 +- .../src/shared/telemetry/vscodeTelemetry.json | 336 ------------------ 3 files changed, 5 insertions(+), 342 deletions(-) diff --git a/package-lock.json b/package-lock.json index c78d59f157f..8b0bcbc6922 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "vscode-nls-dev": "^4.0.4" }, "devDependencies": { - "@aws-toolkits/telemetry": "^1.0.307", + "@aws-toolkits/telemetry": "^1.0.308", "@playwright/browser-chromium": "^1.43.1", "@stylistic/eslint-plugin": "^2.11.0", "@types/he": "^1.2.3", @@ -4806,11 +4806,10 @@ } }, "node_modules/@aws-toolkits/telemetry": { - "version": "1.0.307", - "resolved": "https://registry.npmjs.org/@aws-toolkits/telemetry/-/telemetry-1.0.307.tgz", - "integrity": "sha512-YYpVM0AI2qTP2OgR3J7DFvj/WLiuFQVB7upZh1i45mflae3EWprTPs0wGV5M9wI3PTFRR4zWnxhfL5Du08p9DQ==", + "version": "1.0.308", + "resolved": "https://registry.npmjs.org/@aws-toolkits/telemetry/-/telemetry-1.0.308.tgz", + "integrity": "sha512-cDyQABBXbfVyNpLBB7mcosH0sPuwGmCtFXToOdwHpxVTOcIUAlHtshhpaqDEoMbCO/jFAq28mAUYyk4xtBZogg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "ajv": "^6.12.6", "cross-spawn": "^7.0.6", diff --git a/package.json b/package.json index 7d134193361..1abf7ff4cf4 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "skippedTestReport": "ts-node ./scripts/skippedTestReport.ts ./packages/amazonq/test/e2e/" }, "devDependencies": { - "@aws-toolkits/telemetry": "^1.0.307", + "@aws-toolkits/telemetry": "^1.0.308", "@playwright/browser-chromium": "^1.43.1", "@stylistic/eslint-plugin": "^2.11.0", "@types/he": "^1.2.3", diff --git a/packages/core/src/shared/telemetry/vscodeTelemetry.json b/packages/core/src/shared/telemetry/vscodeTelemetry.json index 235de3111b3..bba9a67a6ec 100644 --- a/packages/core/src/shared/telemetry/vscodeTelemetry.json +++ b/packages/core/src/shared/telemetry/vscodeTelemetry.json @@ -47,102 +47,6 @@ "type": "string", "description": "Installed CLI" }, - { - "name": "cwsprChatTriggerInteraction", - "type": "string", - "allowedValues": ["hotkeys", "click", "contextMenu"], - "description": "Identifies the specific interaction that opens the chat panel" - }, - { - "name": "cwsprChatConversationId", - "type": "string", - "description": "Unique identifier for each conversation" - }, - { - "name": "cwsprChatUserIntent", - "type": "string", - "allowedValues": [ - "suggestAlternateImplementation", - "applyCommonBestPractices", - "improveCode", - "showExample", - "citeSources", - "explainLineByLine", - "explainCodeSelection", - "generateUnitTests" - ], - "description": "Explict user intent associated with a chat message" - }, - { - "name": "cwsprChatHasCodeSnippet", - "type": "boolean", - "description": "true if user has selected code snippet, false otherwise." - }, - { - "name": "cwsprChatHasProjectContext", - "type": "boolean", - "description": "true if query has project level context, false otherwise." - }, - { - "name": "cwsprChatProjectContextQueryMs", - "type": "int", - "description": "Query latency in ms for local project context" - }, - { - "name": "cwsprChatFolderContextCount", - "type": "int", - "description": "Number of folders manually added to context" - }, - { - "name": "cwsprChatFileContextCount", - "type": "int", - "description": "Number of files manually added to context" - }, - { - "name": "cwsprChatFileContextLength", - "type": "int", - "description": "Total length of files added to context" - }, - { - "name": "cwsprChatFileContextTruncatedLength", - "type": "int", - "description": "Truncated length of files added to context" - }, - { - "name": "cwsprChatPromptContextCount", - "type": "int", - "description": "Number of saved prompts manually added to context" - }, - { - "name": "cwsprChatPromptContextLength", - "type": "int", - "description": "Total length of saved prompts added to context" - }, - { - "name": "cwsprChatPromptContextTruncatedLength", - "type": "int", - "description": "Truncated length of saved prompts added to context" - }, - { - "name": "cwsprChatRuleContextCount", - "type": "int", - "description": "Number of workspace rules automatically added to context" - }, - { - "name": "cwsprChatRuleContextLength", - "type": "int", - "description": "Total length of workspace rules added to context" - }, - { - "name": "cwsprChatRuleContextTruncatedLength", - "type": "int", - "description": "Truncated length of workspace rules added to context" - }, - { - "name": "cwsprChatHasContextList", - "type": "boolean", - "description": "true if context list is displayed to user" - }, { "name": "amazonqIndexFileSizeInMB", "type": "int", @@ -163,107 +67,11 @@ "type": "int", "description": "CPU used by LSP server as a percentage of all available CPUs on the system" }, - { - "name": "cwsprChatConversationType", - "type": "string", - "allowedValues": ["Chat", "Assign", "Transform"], - "description": "Identifies the type of conversation" - }, - { - "name": "cwsprChatMessageId", - "type": "string", - "description": "Unique identifier for each message in an conversation" - }, - { - "name": "cwsprChatActiveEditorTotalCharacters", - "type": "int", - "description": "Total number of characters in the active editor" - }, - { - "name": "cwsprChatActiveEditorImportCount", - "type": "int", - "description": "Number of import statements in the active editor" - }, - { - "name": "cwsprChatResponseCodeSnippetCount", - "type": "int", - "description": "Number of code snippets in response" - }, - { - "name": "cwsprChatResponseCode", - "type": "int", - "description": "HTTP response code for message API invocation" - }, { "name": "cwsprChatResponseErrorReason", "type": "string", "description": "Client error reason when processing response stream" }, - { - "name": "cwsprChatSourceLinkCount", - "type": "int", - "description": "Number of links in response" - }, - { - "name": "cwsprChatReferencesCount", - "type": "int", - "description": "Number of references in response" - }, - { - "name": "cwsprChatFollowUpCount", - "type": "int", - "description": "Number of follow ups in response" - }, - { - "name": "cwsprChatTimeToFirstChunk", - "type": "int", - "description": "The time between when the conversation id was created and when we got back the first usable result" - }, - { - "name": "cwsprChatTimeBetweenChunks", - "type": "string", - "description": "An array of time when successive chunks of data are received from the server" - }, - { - "name": "cwsprChatFullResponseLatency", - "type": "int", - "description": "The time between when the conversation id was created and the final response from the server was received" - }, - { - "name": "cwsprChatTimeToFirstUsableChunk", - "type": "int", - "description": "The time between the initial server request, including creating the conversation id, and the first usable result" - }, - { - "name": "cwsprChatFullServerResponseLatency", - "type": "int", - "description": "The time between the initial server request, including creating the conversation id, and the final response from the server" - }, - { - "name": "cwsprChatTimeToFirstDisplay", - "type": "int", - "description": "The time between the user pressing enter and when the first chunk of data is displayed to the user" - }, - { - "name": "cwsprChatTimeBetweenDisplays", - "type": "string", - "description": "An array of time when successive chunks of server responses are displayed to the user" - }, - { - "name": "cwsprChatFullDisplayLatency", - "type": "int", - "description": "The time between the user pressing enter and the entire response being rendered" - }, - { - "name": "cwsprChatResponseLength", - "type": "int", - "description": "Number of characters in response" - }, - { - "name": "cwsprChatRequestLength", - "type": "int", - "description": "Number of characters in request" - }, { "name": "cwsprChatInteractionTarget", "type": "string", @@ -819,150 +627,6 @@ } ] }, - { - "name": "amazonq_addMessage", - "description": "When a message is added to the conversation", - "metadata": [ - { - "type": "cwsprChatConversationId" - }, - { - "type": "credentialStartUrl", - "required": false - }, - { - "type": "cwsprChatMessageId" - }, - { - "type": "cwsprChatTriggerInteraction" - }, - { - "type": "cwsprChatUserIntent", - "required": false - }, - { - "type": "cwsprChatHasCodeSnippet", - "required": false - }, - { - "type": "cwsprChatProgrammingLanguage", - "required": false - }, - { - "type": "cwsprChatActiveEditorTotalCharacters", - "required": false - }, - { - "type": "cwsprChatActiveEditorImportCount", - "required": false - }, - { - "type": "cwsprChatResponseCodeSnippetCount", - "required": false - }, - { - "type": "cwsprChatResponseCode" - }, - { - "type": "cwsprChatSourceLinkCount", - "required": false - }, - { - "type": "cwsprChatReferencesCount", - "required": false - }, - { - "type": "cwsprChatFollowUpCount", - "required": false - }, - { - "type": "cwsprChatTimeToFirstChunk" - }, - { - "type": "cwsprChatTimeBetweenChunks" - }, - { - "type": "cwsprChatFullResponseLatency" - }, - { - "type": "cwsprChatTimeToFirstUsableChunk" - }, - { - "type": "cwsprChatFullServerResponseLatency" - }, - { - "type": "cwsprChatTimeToFirstDisplay" - }, - { - "type": "cwsprChatFullDisplayLatency" - }, - { - "type": "cwsprChatTimeBetweenDisplays" - }, - { - "type": "cwsprChatRequestLength" - }, - { - "type": "cwsprChatResponseLength", - "required": false - }, - { - "type": "cwsprChatConversationType" - }, - { - "type": "cwsprChatHasProjectContext", - "required": false - }, - { - "type": "codewhispererCustomizationArn", - "required": false - }, - { - "type": "cwsprChatHasContextList", - "required": false - }, - { - "type": "cwsprChatFolderContextCount", - "required": false - }, - { - "type": "cwsprChatFileContextCount", - "required": false - }, - { - "type": "cwsprChatFileContextLength", - "required": false - }, - { - "type": "cwsprChatFileContextTruncatedLength", - "required": false - }, - { - "type": "cwsprChatPromptContextCount", - "required": false - }, - { - "type": "cwsprChatPromptContextLength", - "required": false - }, - { - "type": "cwsprChatRuleContextTruncatedLength", - "required": false - }, - { - "type": "cwsprChatRuleContextCount", - "required": false - }, - { - "type": "cwsprChatRuleContextLength", - "required": false - }, - { - "type": "cwsprChatPromptContextTruncatedLength", - "required": false - } - ] - }, { "name": "amazonq_messageResponseError", "description": "When an error has occured in response to a prompt",