Skip to content

Commit b3fa82f

Browse files
committed
telemetry(amazonq): add metrics for code symbols, chat history and export
1 parent 8e55b60 commit b3fa82f

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
"type": "double",
5656
"description": "The time it takes to generate code generation response"
5757
},
58+
{
59+
"name": "amazonqHistoryFileSize",
60+
"type": "int",
61+
"description": "The size of a chat history file (in bytes)"
62+
},
5863
{
5964
"name": "amazonqNumberOfFilesAccepted",
6065
"type": "double",
@@ -75,6 +80,16 @@
7580
"type": "double",
7681
"description": "Captures the size of the source code"
7782
},
83+
{
84+
"name": "amazonqTimeToLoadHistory",
85+
"type": "int",
86+
"description": "The time (in milliseconds) it takes to load chat history from filesystem"
87+
},
88+
{
89+
"name": "amazonqTimeToSearchHistory",
90+
"type": "int",
91+
"description": "The time (in milliseconds) it takes to search through all messages in chat history for a user-provided search string"
92+
},
7893
{
7994
"name": "amazonqUploadIntent",
8095
"type": "string",
@@ -231,6 +246,17 @@
231246
"type": "boolean",
232247
"description": "Boolean value of whether or not a Cfn parameter file is provided."
233248
},
249+
{
250+
"name": "chatHistoryAction",
251+
"type": "string",
252+
"allowedValues": [
253+
"search",
254+
"export",
255+
"open",
256+
"delete"
257+
],
258+
"description": "The type of action performed on chat history"
259+
},
234260
{
235261
"name": "checkType",
236262
"type": "string",
@@ -1009,6 +1035,21 @@
10091035
"type": "int",
10101036
"description": "Index of the code block inside a message in the conversation."
10111037
},
1038+
{
1039+
"name": "cwsprChatCodeContextCount",
1040+
"type": "int",
1041+
"description": "Number of code symbols added to context"
1042+
},
1043+
{
1044+
"name": "cwsprChatCodeContextLength",
1045+
"type": "int",
1046+
"description": "Total length of code symbols added to context"
1047+
},
1048+
{
1049+
"name": "cwsprChatCodeContextTruncatedLength",
1050+
"type": "int",
1051+
"description": "Truncated length of code symbols added to context"
1052+
},
10121053
{
10131054
"name": "cwsprChatConversationId",
10141055
"type": "string",
@@ -1471,6 +1512,15 @@
14711512
],
14721513
"description": "The experiment action taken action taken"
14731514
},
1515+
{
1516+
"name": "exportFormat",
1517+
"type": "string",
1518+
"allowedValues": [
1519+
"html",
1520+
"markdown"
1521+
],
1522+
"description": "The file format chosen by the user when exporting chat history"
1523+
},
14741524
{
14751525
"name": "failedCount",
14761526
"type": "int",
@@ -1837,6 +1887,11 @@
18371887
"type": "string",
18381888
"description": "The old version of something. Useful when updating dependent resources."
18391889
},
1890+
{
1891+
"name": "openTabCount",
1892+
"type": "int",
1893+
"description": "The number of tabs automatically opened from history"
1894+
},
18401895
{
18411896
"name": "parentId",
18421897
"type": "string",
@@ -2247,6 +2302,18 @@
22472302
"type": "cwsprChatActiveEditorTotalCharacters",
22482303
"required": false
22492304
},
2305+
{
2306+
"type": "cwsprChatCodeContextCount",
2307+
"required": false
2308+
},
2309+
{
2310+
"type": "cwsprChatCodeContextLength",
2311+
"required": false
2312+
},
2313+
{
2314+
"type": "cwsprChatCodeContextTruncatedLength",
2315+
"required": false
2316+
},
22502317
{
22512318
"type": "cwsprChatConversationId"
22522319
},
@@ -2602,6 +2669,20 @@
26022669
}
26032670
]
26042671
},
2672+
{
2673+
"name": "amazonq_exportTab",
2674+
"description": "When a user exports the current Amazon Q chat tab",
2675+
"metadata": [
2676+
{
2677+
"type": "exportFormat",
2678+
"required": true
2679+
},
2680+
{
2681+
"type": "languageServerVersion",
2682+
"required": false
2683+
}
2684+
]
2685+
},
26052686
{
26062687
"name": "amazonq_feedback",
26072688
"description": "When a user gives feedback using vote or comment or rating in the conversation",
@@ -2788,6 +2869,28 @@
27882869
}
27892870
]
27902871
},
2872+
{
2873+
"name": "amazonq_loadHistory",
2874+
"description": "When a history file is loaded from the filesystem and open tabs are restored",
2875+
"metadata": [
2876+
{
2877+
"type": "amazonqHistoryFileSize",
2878+
"required": true
2879+
},
2880+
{
2881+
"type": "amazonqTimeToLoadHistory",
2882+
"required": true
2883+
},
2884+
{
2885+
"type": "languageServerVersion",
2886+
"required": false
2887+
},
2888+
{
2889+
"type": "openTabCount",
2890+
"required": true
2891+
}
2892+
]
2893+
},
27912894
{
27922895
"name": "amazonq_messageResponseError",
27932896
"description": "When an error has occured in response to a prompt",
@@ -2863,6 +2966,32 @@
28632966
}
28642967
]
28652968
},
2969+
{
2970+
"name": "amazonq_performChatHistoryAction",
2971+
"description": "When a user searches, exports, opens, or deletes a conversation from history",
2972+
"metadata": [
2973+
{
2974+
"type": "amazonqHistoryFileSize",
2975+
"required": false
2976+
},
2977+
{
2978+
"type": "amazonqTimeToSearchHistory",
2979+
"required": false
2980+
},
2981+
{
2982+
"type": "chatHistoryAction",
2983+
"required": true
2984+
},
2985+
{
2986+
"type": "exportFormat",
2987+
"required": false
2988+
},
2989+
{
2990+
"type": "languageServerVersion",
2991+
"required": false
2992+
}
2993+
]
2994+
},
28662995
{
28672996
"name": "amazonq_startConversationInvoke",
28682997
"description": "Captures startConversation invocation process",

0 commit comments

Comments
 (0)