Skip to content

Commit cb625e4

Browse files
authored
telemetry(amazonq): amazonq_addMessage was upstreamed
1 parent 27a698f commit cb625e4

File tree

3 files changed

+5
-342
lines changed

3 files changed

+5
-342
lines changed

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"skippedTestReport": "ts-node ./scripts/skippedTestReport.ts ./packages/amazonq/test/e2e/"
4242
},
4343
"devDependencies": {
44-
"@aws-toolkits/telemetry": "^1.0.307",
44+
"@aws-toolkits/telemetry": "^1.0.308",
4545
"@playwright/browser-chromium": "^1.43.1",
4646
"@stylistic/eslint-plugin": "^2.11.0",
4747
"@types/he": "^1.2.3",

packages/core/src/shared/telemetry/vscodeTelemetry.json

Lines changed: 0 additions & 336 deletions
Original file line numberDiff line numberDiff line change
@@ -47,102 +47,6 @@
4747
"type": "string",
4848
"description": "Installed CLI"
4949
},
50-
{
51-
"name": "cwsprChatTriggerInteraction",
52-
"type": "string",
53-
"allowedValues": ["hotkeys", "click", "contextMenu"],
54-
"description": "Identifies the specific interaction that opens the chat panel"
55-
},
56-
{
57-
"name": "cwsprChatConversationId",
58-
"type": "string",
59-
"description": "Unique identifier for each conversation"
60-
},
61-
{
62-
"name": "cwsprChatUserIntent",
63-
"type": "string",
64-
"allowedValues": [
65-
"suggestAlternateImplementation",
66-
"applyCommonBestPractices",
67-
"improveCode",
68-
"showExample",
69-
"citeSources",
70-
"explainLineByLine",
71-
"explainCodeSelection",
72-
"generateUnitTests"
73-
],
74-
"description": "Explict user intent associated with a chat message"
75-
},
76-
{
77-
"name": "cwsprChatHasCodeSnippet",
78-
"type": "boolean",
79-
"description": "true if user has selected code snippet, false otherwise."
80-
},
81-
{
82-
"name": "cwsprChatHasProjectContext",
83-
"type": "boolean",
84-
"description": "true if query has project level context, false otherwise."
85-
},
86-
{
87-
"name": "cwsprChatProjectContextQueryMs",
88-
"type": "int",
89-
"description": "Query latency in ms for local project context"
90-
},
91-
{
92-
"name": "cwsprChatFolderContextCount",
93-
"type": "int",
94-
"description": "Number of folders manually added to context"
95-
},
96-
{
97-
"name": "cwsprChatFileContextCount",
98-
"type": "int",
99-
"description": "Number of files manually added to context"
100-
},
101-
{
102-
"name": "cwsprChatFileContextLength",
103-
"type": "int",
104-
"description": "Total length of files added to context"
105-
},
106-
{
107-
"name": "cwsprChatFileContextTruncatedLength",
108-
"type": "int",
109-
"description": "Truncated length of files added to context"
110-
},
111-
{
112-
"name": "cwsprChatPromptContextCount",
113-
"type": "int",
114-
"description": "Number of saved prompts manually added to context"
115-
},
116-
{
117-
"name": "cwsprChatPromptContextLength",
118-
"type": "int",
119-
"description": "Total length of saved prompts added to context"
120-
},
121-
{
122-
"name": "cwsprChatPromptContextTruncatedLength",
123-
"type": "int",
124-
"description": "Truncated length of saved prompts added to context"
125-
},
126-
{
127-
"name": "cwsprChatRuleContextCount",
128-
"type": "int",
129-
"description": "Number of workspace rules automatically added to context"
130-
},
131-
{
132-
"name": "cwsprChatRuleContextLength",
133-
"type": "int",
134-
"description": "Total length of workspace rules added to context"
135-
},
136-
{
137-
"name": "cwsprChatRuleContextTruncatedLength",
138-
"type": "int",
139-
"description": "Truncated length of workspace rules added to context"
140-
},
141-
{
142-
"name": "cwsprChatHasContextList",
143-
"type": "boolean",
144-
"description": "true if context list is displayed to user"
145-
},
14650
{
14751
"name": "amazonqIndexFileSizeInMB",
14852
"type": "int",
@@ -163,107 +67,11 @@
16367
"type": "int",
16468
"description": "CPU used by LSP server as a percentage of all available CPUs on the system"
16569
},
166-
{
167-
"name": "cwsprChatConversationType",
168-
"type": "string",
169-
"allowedValues": ["Chat", "Assign", "Transform"],
170-
"description": "Identifies the type of conversation"
171-
},
172-
{
173-
"name": "cwsprChatMessageId",
174-
"type": "string",
175-
"description": "Unique identifier for each message in an conversation"
176-
},
177-
{
178-
"name": "cwsprChatActiveEditorTotalCharacters",
179-
"type": "int",
180-
"description": "Total number of characters in the active editor"
181-
},
182-
{
183-
"name": "cwsprChatActiveEditorImportCount",
184-
"type": "int",
185-
"description": "Number of import statements in the active editor"
186-
},
187-
{
188-
"name": "cwsprChatResponseCodeSnippetCount",
189-
"type": "int",
190-
"description": "Number of code snippets in response"
191-
},
192-
{
193-
"name": "cwsprChatResponseCode",
194-
"type": "int",
195-
"description": "HTTP response code for message API invocation"
196-
},
19770
{
19871
"name": "cwsprChatResponseErrorReason",
19972
"type": "string",
20073
"description": "Client error reason when processing response stream"
20174
},
202-
{
203-
"name": "cwsprChatSourceLinkCount",
204-
"type": "int",
205-
"description": "Number of links in response"
206-
},
207-
{
208-
"name": "cwsprChatReferencesCount",
209-
"type": "int",
210-
"description": "Number of references in response"
211-
},
212-
{
213-
"name": "cwsprChatFollowUpCount",
214-
"type": "int",
215-
"description": "Number of follow ups in response"
216-
},
217-
{
218-
"name": "cwsprChatTimeToFirstChunk",
219-
"type": "int",
220-
"description": "The time between when the conversation id was created and when we got back the first usable result"
221-
},
222-
{
223-
"name": "cwsprChatTimeBetweenChunks",
224-
"type": "string",
225-
"description": "An array of time when successive chunks of data are received from the server"
226-
},
227-
{
228-
"name": "cwsprChatFullResponseLatency",
229-
"type": "int",
230-
"description": "The time between when the conversation id was created and the final response from the server was received"
231-
},
232-
{
233-
"name": "cwsprChatTimeToFirstUsableChunk",
234-
"type": "int",
235-
"description": "The time between the initial server request, including creating the conversation id, and the first usable result"
236-
},
237-
{
238-
"name": "cwsprChatFullServerResponseLatency",
239-
"type": "int",
240-
"description": "The time between the initial server request, including creating the conversation id, and the final response from the server"
241-
},
242-
{
243-
"name": "cwsprChatTimeToFirstDisplay",
244-
"type": "int",
245-
"description": "The time between the user pressing enter and when the first chunk of data is displayed to the user"
246-
},
247-
{
248-
"name": "cwsprChatTimeBetweenDisplays",
249-
"type": "string",
250-
"description": "An array of time when successive chunks of server responses are displayed to the user"
251-
},
252-
{
253-
"name": "cwsprChatFullDisplayLatency",
254-
"type": "int",
255-
"description": "The time between the user pressing enter and the entire response being rendered"
256-
},
257-
{
258-
"name": "cwsprChatResponseLength",
259-
"type": "int",
260-
"description": "Number of characters in response"
261-
},
262-
{
263-
"name": "cwsprChatRequestLength",
264-
"type": "int",
265-
"description": "Number of characters in request"
266-
},
26775
{
26876
"name": "cwsprChatInteractionTarget",
26977
"type": "string",
@@ -819,150 +627,6 @@
819627
}
820628
]
821629
},
822-
{
823-
"name": "amazonq_addMessage",
824-
"description": "When a message is added to the conversation",
825-
"metadata": [
826-
{
827-
"type": "cwsprChatConversationId"
828-
},
829-
{
830-
"type": "credentialStartUrl",
831-
"required": false
832-
},
833-
{
834-
"type": "cwsprChatMessageId"
835-
},
836-
{
837-
"type": "cwsprChatTriggerInteraction"
838-
},
839-
{
840-
"type": "cwsprChatUserIntent",
841-
"required": false
842-
},
843-
{
844-
"type": "cwsprChatHasCodeSnippet",
845-
"required": false
846-
},
847-
{
848-
"type": "cwsprChatProgrammingLanguage",
849-
"required": false
850-
},
851-
{
852-
"type": "cwsprChatActiveEditorTotalCharacters",
853-
"required": false
854-
},
855-
{
856-
"type": "cwsprChatActiveEditorImportCount",
857-
"required": false
858-
},
859-
{
860-
"type": "cwsprChatResponseCodeSnippetCount",
861-
"required": false
862-
},
863-
{
864-
"type": "cwsprChatResponseCode"
865-
},
866-
{
867-
"type": "cwsprChatSourceLinkCount",
868-
"required": false
869-
},
870-
{
871-
"type": "cwsprChatReferencesCount",
872-
"required": false
873-
},
874-
{
875-
"type": "cwsprChatFollowUpCount",
876-
"required": false
877-
},
878-
{
879-
"type": "cwsprChatTimeToFirstChunk"
880-
},
881-
{
882-
"type": "cwsprChatTimeBetweenChunks"
883-
},
884-
{
885-
"type": "cwsprChatFullResponseLatency"
886-
},
887-
{
888-
"type": "cwsprChatTimeToFirstUsableChunk"
889-
},
890-
{
891-
"type": "cwsprChatFullServerResponseLatency"
892-
},
893-
{
894-
"type": "cwsprChatTimeToFirstDisplay"
895-
},
896-
{
897-
"type": "cwsprChatFullDisplayLatency"
898-
},
899-
{
900-
"type": "cwsprChatTimeBetweenDisplays"
901-
},
902-
{
903-
"type": "cwsprChatRequestLength"
904-
},
905-
{
906-
"type": "cwsprChatResponseLength",
907-
"required": false
908-
},
909-
{
910-
"type": "cwsprChatConversationType"
911-
},
912-
{
913-
"type": "cwsprChatHasProjectContext",
914-
"required": false
915-
},
916-
{
917-
"type": "codewhispererCustomizationArn",
918-
"required": false
919-
},
920-
{
921-
"type": "cwsprChatHasContextList",
922-
"required": false
923-
},
924-
{
925-
"type": "cwsprChatFolderContextCount",
926-
"required": false
927-
},
928-
{
929-
"type": "cwsprChatFileContextCount",
930-
"required": false
931-
},
932-
{
933-
"type": "cwsprChatFileContextLength",
934-
"required": false
935-
},
936-
{
937-
"type": "cwsprChatFileContextTruncatedLength",
938-
"required": false
939-
},
940-
{
941-
"type": "cwsprChatPromptContextCount",
942-
"required": false
943-
},
944-
{
945-
"type": "cwsprChatPromptContextLength",
946-
"required": false
947-
},
948-
{
949-
"type": "cwsprChatRuleContextTruncatedLength",
950-
"required": false
951-
},
952-
{
953-
"type": "cwsprChatRuleContextCount",
954-
"required": false
955-
},
956-
{
957-
"type": "cwsprChatRuleContextLength",
958-
"required": false
959-
},
960-
{
961-
"type": "cwsprChatPromptContextTruncatedLength",
962-
"required": false
963-
}
964-
]
965-
},
966630
{
967631
"name": "amazonq_messageResponseError",
968632
"description": "When an error has occured in response to a prompt",

0 commit comments

Comments
 (0)