Skip to content

Commit c0993eb

Browse files
authored
amazonq: port amazonq_addMessage from VSC & JB in to common definitions (#999)
This metric exists in both vs code and jetbrains overrides. This PR moves it to common and will be followed up by deleting overrides in IDE codebases <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 8d8d425 commit c0993eb

File tree

1 file changed

+298
-0
lines changed

1 file changed

+298
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 298 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,16 @@
982982
"type": "int",
983983
"description": "Count of lines of code copied to the editor"
984984
},
985+
{
986+
"name": "cwsprChatActiveEditorImportCount",
987+
"type": "int",
988+
"description": "Number of import statements in the active editor"
989+
},
990+
{
991+
"name": "cwsprChatActiveEditorTotalCharacters",
992+
"type": "int",
993+
"description": "Total number of characters in the active editor"
994+
},
985995
{
986996
"name": "cwsprChatCodeBlockIndex",
987997
"type": "int",
@@ -992,16 +1002,66 @@
9921002
"type": "string",
9931003
"description": "Uniquely identifies a message with which the user interacts."
9941004
},
1005+
{
1006+
"name": "cwsprChatConversationType",
1007+
"type": "string",
1008+
"allowedValues": [
1009+
"Chat",
1010+
"Assign",
1011+
"Transform"
1012+
],
1013+
"description": "Identifies the type of conversation"
1014+
},
9951015
{
9961016
"name": "cwsprChatFileContextCount",
9971017
"type": "int",
9981018
"description": "Number of files manually added to context"
9991019
},
1020+
{
1021+
"name": "cwsprChatFileContextLength",
1022+
"type": "int",
1023+
"description": "Total length of files added to context"
1024+
},
1025+
{
1026+
"name": "cwsprChatFileContextTruncatedLength",
1027+
"type": "int",
1028+
"description": "Truncated length of files added to context"
1029+
},
10001030
{
10011031
"name": "cwsprChatFolderContextCount",
10021032
"type": "int",
10031033
"description": "Number of folders manually added to context"
10041034
},
1035+
{
1036+
"name": "cwsprChatFollowUpCount",
1037+
"type": "int",
1038+
"description": "Number of follow ups in response"
1039+
},
1040+
{
1041+
"name": "cwsprChatFullDisplayLatency",
1042+
"type": "int",
1043+
"description": "The time between the user pressing enter and the entire response being rendered"
1044+
},
1045+
{
1046+
"name": "cwsprChatFullResponseLatency",
1047+
"type": "int",
1048+
"description": "The time between when the conversation id was created and the final response from the server was received"
1049+
},
1050+
{
1051+
"name": "cwsprChatFullServerResponseLatency",
1052+
"type": "int",
1053+
"description": "The time between the initial server request, including creating the conversation id, and the final response from the server"
1054+
},
1055+
{
1056+
"name": "cwsprChatHasCodeSnippet",
1057+
"type": "boolean",
1058+
"description": "true if user has selected code snippet, false otherwise."
1059+
},
1060+
{
1061+
"name": "cwsprChatHasContextList",
1062+
"type": "boolean",
1063+
"description": "true if context list is displayed to user"
1064+
},
10051065
{
10061066
"name": "cwsprChatHasProjectContext",
10071067
"type": "boolean",
@@ -1045,21 +1105,111 @@
10451105
"type": "string",
10461106
"description": "Programming language associated with the message"
10471107
},
1108+
{
1109+
"name": "cwsprChatProjectContextQueryMs",
1110+
"type": "int",
1111+
"description": "query latency in ms for local project context"
1112+
},
10481113
{
10491114
"name": "cwsprChatPromptContextCount",
10501115
"type": "int",
10511116
"description": "Number of saved prompts manually added to context"
10521117
},
1118+
{
1119+
"name": "cwsprChatPromptContextLength",
1120+
"type": "int",
1121+
"description": "Total length of saved prompts added to context"
1122+
},
1123+
{
1124+
"name": "cwsprChatPromptContextTruncatedLength",
1125+
"type": "int",
1126+
"description": "Truncated length of saved prompts added to context"
1127+
},
1128+
{
1129+
"name": "cwsprChatReferencesCount",
1130+
"type": "int",
1131+
"description": "Number of references in response"
1132+
},
1133+
{
1134+
"name": "cwsprChatRequestLength",
1135+
"type": "int",
1136+
"description": "Number of characters in request"
1137+
},
1138+
{
1139+
"name": "cwsprChatResponseCode",
1140+
"type": "int",
1141+
"description": "HTTP response code for message API invocation"
1142+
},
1143+
{
1144+
"name": "cwsprChatResponseCodeSnippetCount",
1145+
"type": "int",
1146+
"description": "Number of code snippets in response"
1147+
},
1148+
{
1149+
"name": "cwsprChatResponseLength",
1150+
"type": "int",
1151+
"description": "Number of characters in response"
1152+
},
10531153
{
10541154
"name": "cwsprChatRuleContextCount",
10551155
"type": "int",
10561156
"description": "Number of workspace rules automatically added to context"
10571157
},
1158+
{
1159+
"name": "cwsprChatRuleContextLength",
1160+
"type": "int",
1161+
"description": "Total length of workspace rules added to context"
1162+
},
1163+
{
1164+
"name": "cwsprChatRuleContextTruncatedLength",
1165+
"type": "int",
1166+
"description": "Truncated length of workspace rules added to context"
1167+
},
1168+
{
1169+
"name": "cwsprChatSourceLinkCount",
1170+
"type": "int",
1171+
"description": "Number of links in response"
1172+
},
1173+
{
1174+
"name": "cwsprChatTimeBetweenChunks",
1175+
"type": "string",
1176+
"description": "An array of time when successive chunks of data are received from the server"
1177+
},
1178+
{
1179+
"name": "cwsprChatTimeBetweenDisplays",
1180+
"type": "string",
1181+
"description": "An array of time when successive chunks of server responses are displayed to the user"
1182+
},
1183+
{
1184+
"name": "cwsprChatTimeToFirstChunk",
1185+
"type": "int",
1186+
"description": "The time between when the conversation id was created and when we got back the first usable result"
1187+
},
1188+
{
1189+
"name": "cwsprChatTimeToFirstDisplay",
1190+
"type": "int",
1191+
"description": "The time between the user pressing enter and when the first chunk of data is displayed to the user"
1192+
},
1193+
{
1194+
"name": "cwsprChatTimeToFirstUsableChunk",
1195+
"type": "int",
1196+
"description": "The time between the initial server request, including creating the conversation id, and the first usable result"
1197+
},
10581198
{
10591199
"name": "cwsprChatTotalCodeBlocks",
10601200
"type": "int",
10611201
"description": "Total number of code blocks inside a message in the conversation."
10621202
},
1203+
{
1204+
"name": "cwsprChatTriggerInteraction",
1205+
"type": "string",
1206+
"allowedValues": [
1207+
"hotkeys",
1208+
"click",
1209+
"contextMenu"
1210+
],
1211+
"description": "Identifies the specific interaction that opens the chat panel"
1212+
},
10631213
{
10641214
"name": "cwsprChatUserIntent",
10651215
"type": "string",
@@ -2012,6 +2162,154 @@
20122162
}
20132163
]
20142164
},
2165+
{
2166+
"name": "amazonq_addMessage",
2167+
"description": "When a message is added to the conversation",
2168+
"metadata": [
2169+
{
2170+
"type": "codewhispererCustomizationArn",
2171+
"required": false
2172+
},
2173+
{
2174+
"type": "credentialStartUrl",
2175+
"required": false
2176+
},
2177+
{
2178+
"type": "cwsprChatActiveEditorImportCount",
2179+
"required": false
2180+
},
2181+
{
2182+
"type": "cwsprChatActiveEditorTotalCharacters",
2183+
"required": false
2184+
},
2185+
{
2186+
"type": "cwsprChatConversationId"
2187+
},
2188+
{
2189+
"type": "cwsprChatConversationType"
2190+
},
2191+
{
2192+
"type": "cwsprChatFileContextCount",
2193+
"required": false
2194+
},
2195+
{
2196+
"type": "cwsprChatFileContextLength",
2197+
"required": false
2198+
},
2199+
{
2200+
"type": "cwsprChatFileContextTruncatedLength",
2201+
"required": false
2202+
},
2203+
{
2204+
"type": "cwsprChatFolderContextCount",
2205+
"required": false
2206+
},
2207+
{
2208+
"type": "cwsprChatFollowUpCount",
2209+
"required": false
2210+
},
2211+
{
2212+
"type": "cwsprChatFullDisplayLatency"
2213+
},
2214+
{
2215+
"type": "cwsprChatFullResponseLatency"
2216+
},
2217+
{
2218+
"type": "cwsprChatFullServerResponseLatency"
2219+
},
2220+
{
2221+
"type": "cwsprChatHasCodeSnippet",
2222+
"required": false
2223+
},
2224+
{
2225+
"type": "cwsprChatHasContextList",
2226+
"required": false
2227+
},
2228+
{
2229+
"type": "cwsprChatHasProjectContext",
2230+
"required": false
2231+
},
2232+
{
2233+
"type": "cwsprChatMessageId"
2234+
},
2235+
{
2236+
"type": "cwsprChatProgrammingLanguage",
2237+
"required": false
2238+
},
2239+
{
2240+
"type": "cwsprChatProjectContextQueryMs",
2241+
"required": false
2242+
},
2243+
{
2244+
"type": "cwsprChatPromptContextCount",
2245+
"required": false
2246+
},
2247+
{
2248+
"type": "cwsprChatPromptContextLength",
2249+
"required": false
2250+
},
2251+
{
2252+
"type": "cwsprChatPromptContextTruncatedLength",
2253+
"required": false
2254+
},
2255+
{
2256+
"type": "cwsprChatReferencesCount",
2257+
"required": false
2258+
},
2259+
{
2260+
"type": "cwsprChatRequestLength"
2261+
},
2262+
{
2263+
"type": "cwsprChatResponseCode"
2264+
},
2265+
{
2266+
"type": "cwsprChatResponseCodeSnippetCount",
2267+
"required": false
2268+
},
2269+
{
2270+
"type": "cwsprChatResponseLength",
2271+
"required": false
2272+
},
2273+
{
2274+
"type": "cwsprChatRuleContextCount",
2275+
"required": false
2276+
},
2277+
{
2278+
"type": "cwsprChatRuleContextLength",
2279+
"required": false
2280+
},
2281+
{
2282+
"type": "cwsprChatRuleContextTruncatedLength",
2283+
"required": false
2284+
},
2285+
{
2286+
"type": "cwsprChatSourceLinkCount",
2287+
"required": false
2288+
},
2289+
{
2290+
"type": "cwsprChatTimeBetweenChunks"
2291+
},
2292+
{
2293+
"type": "cwsprChatTimeBetweenDisplays"
2294+
},
2295+
{
2296+
"type": "cwsprChatTimeToFirstChunk"
2297+
},
2298+
{
2299+
"type": "cwsprChatTimeToFirstDisplay"
2300+
},
2301+
{
2302+
"type": "cwsprChatTimeToFirstUsableChunk"
2303+
},
2304+
{
2305+
"type": "cwsprChatTriggerInteraction"
2306+
},
2307+
{
2308+
"type": "cwsprChatUserIntent",
2309+
"required": false
2310+
}
2311+
]
2312+
},
20152313
{
20162314
"name": "amazonq_approachInvoke",
20172315
"description": "Captures Approach generation process",

0 commit comments

Comments
 (0)