diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index 8606fd6ce..a07537cf6 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -55,6 +55,11 @@ "type": "double", "description": "The time it takes to generate code generation response" }, + { + "name": "amazonqHistoryFileSize", + "type": "int", + "description": "The size of a chat history file (in bytes)" + }, { "name": "amazonqNumberOfFilesAccepted", "type": "double", @@ -75,6 +80,16 @@ "type": "double", "description": "Captures the size of the source code" }, + { + "name": "amazonqTimeToLoadHistory", + "type": "int", + "description": "The time (in milliseconds) it takes to load chat history from filesystem" + }, + { + "name": "amazonqTimeToSearchHistory", + "type": "int", + "description": "The time (in milliseconds) it takes to search through all messages in chat history for a user-provided search string" + }, { "name": "amazonqUploadIntent", "type": "string", @@ -1009,6 +1024,21 @@ "type": "int", "description": "Index of the code block inside a message in the conversation." }, + { + "name": "cwsprChatCodeContextCount", + "type": "int", + "description": "Number of code symbols added to context" + }, + { + "name": "cwsprChatCodeContextLength", + "type": "int", + "description": "Total length of code symbols added to context" + }, + { + "name": "cwsprChatCodeContextTruncatedLength", + "type": "int", + "description": "Truncated length of code symbols added to context" + }, { "name": "cwsprChatConversationId", "type": "string", @@ -1837,6 +1867,11 @@ "type": "string", "description": "The old version of something. Useful when updating dependent resources." }, + { + "name": "openTabCount", + "type": "int", + "description": "The number of tabs automatically opened from history" + }, { "name": "parentId", "type": "string", @@ -2247,6 +2282,18 @@ "type": "cwsprChatActiveEditorTotalCharacters", "required": false }, + { + "type": "cwsprChatCodeContextCount", + "required": false + }, + { + "type": "cwsprChatCodeContextLength", + "required": false + }, + { + "type": "cwsprChatCodeContextTruncatedLength", + "required": false + }, { "type": "cwsprChatConversationId" }, @@ -2602,6 +2649,20 @@ } ] }, + { + "name": "amazonq_exportTab", + "description": "When a user exports the current Amazon Q chat tab", + "metadata": [ + { + "type": "filenameExt", + "required": true + }, + { + "type": "languageServerVersion", + "required": false + } + ] + }, { "name": "amazonq_feedback", "description": "When a user gives feedback using vote or comment or rating in the conversation", @@ -2788,6 +2849,28 @@ } ] }, + { + "name": "amazonq_loadHistory", + "description": "When a history file is loaded from the filesystem and open tabs are restored", + "metadata": [ + { + "type": "amazonqHistoryFileSize", + "required": true + }, + { + "type": "amazonqTimeToLoadHistory", + "required": true + }, + { + "type": "languageServerVersion", + "required": false + }, + { + "type": "openTabCount", + "required": true + } + ] + }, { "name": "amazonq_messageResponseError", "description": "When an error has occured in response to a prompt", @@ -2863,6 +2946,32 @@ } ] }, + { + "name": "amazonq_performChatHistoryAction", + "description": "When a user searches, exports, opens, or deletes a conversation from history", + "metadata": [ + { + "type": "action", + "required": true + }, + { + "type": "amazonqHistoryFileSize", + "required": false + }, + { + "type": "amazonqTimeToSearchHistory", + "required": false + }, + { + "type": "filenameExt", + "required": false + }, + { + "type": "languageServerVersion", + "required": false + } + ] + }, { "name": "amazonq_startConversationInvoke", "description": "Captures startConversation invocation process",