Skip to content

Commit 30f0a8f

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

File tree

1 file changed

+147
-0
lines changed

1 file changed

+147
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 147 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 current 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 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 manually 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,21 @@
26022669
}
26032670
]
26042671
},
2672+
{
2673+
"name": "amazonq_exportTab",
2674+
"description": "When a user exports current tab",
2675+
"unit": "Count",
2676+
"metadata": [
2677+
{
2678+
"type": "exportFormat",
2679+
"required": true
2680+
},
2681+
{
2682+
"type": "languageServerVersion",
2683+
"required": false
2684+
}
2685+
]
2686+
},
26052687
{
26062688
"name": "amazonq_feedback",
26072689
"description": "When a user gives feedback using vote or comment or rating in the conversation",
@@ -2788,6 +2870,29 @@
27882870
}
27892871
]
27902872
},
2873+
{
2874+
"name": "amazonq_loadHistory",
2875+
"description": "When a history file is loaded",
2876+
"unit": "Count",
2877+
"metadata": [
2878+
{
2879+
"type": "amazonqHistoryFileSize",
2880+
"required": true
2881+
},
2882+
{
2883+
"type": "amazonqTimeToLoadHistory",
2884+
"required": true
2885+
},
2886+
{
2887+
"type": "languageServerVersion",
2888+
"required": false
2889+
},
2890+
{
2891+
"type": "openTabCount",
2892+
"required": true
2893+
}
2894+
]
2895+
},
27912896
{
27922897
"name": "amazonq_messageResponseError",
27932898
"description": "When an error has occured in response to a prompt",
@@ -2863,6 +2968,48 @@
28632968
}
28642969
]
28652970
},
2971+
{
2972+
"name": "amazonq_performChatHistoryAction",
2973+
"description": "When a user searches, exports, opens, or deletes a conversation from history",
2974+
"unit": "Count",
2975+
"metadata": [
2976+
{
2977+
"type": "amazonqHistoryFileSize",
2978+
"required": false
2979+
},
2980+
{
2981+
"type": "amazonqTimeToSearchHistory",
2982+
"required": false
2983+
},
2984+
{
2985+
"type": "chatHistoryAction",
2986+
"required": true
2987+
},
2988+
{
2989+
"type": "exportFormat",
2990+
"required": false
2991+
},
2992+
{
2993+
"type": "languageServerVersion",
2994+
"required": false
2995+
}
2996+
]
2997+
},
2998+
{
2999+
"name": "amazonq_restoreTabs",
3000+
"description": "When tabs are automatically restored from history",
3001+
"unit": "Count",
3002+
"metadata": [
3003+
{
3004+
"type": "languageServerVersion",
3005+
"required": false
3006+
},
3007+
{
3008+
"type": "tabCount",
3009+
"required": true
3010+
}
3011+
]
3012+
},
28663013
{
28673014
"name": "amazonq_startConversationInvoke",
28683015
"description": "Captures startConversation invocation process",

0 commit comments

Comments
 (0)