Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions telemetry/definitions/commonDefinitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -231,6 +246,17 @@
"type": "boolean",
"description": "Boolean value of whether or not a Cfn parameter file is provided."
},
{
"name": "chatHistoryAction",
"type": "string",
"allowedValues": [
"search",
"export",
"open",
"delete"
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have action that can be reused here unless we have strong reason for prefix:

{
"name": "action",
"type": "string",
"description": "Name of an action that was taken, displayed, etc. See also `userChoice`."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no thats fine, i can switch it to the existing action type

"description": "The type of action performed on chat history"
},
{
"name": "checkType",
"type": "string",
Expand Down Expand Up @@ -1009,6 +1035,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",
Expand Down Expand Up @@ -1471,6 +1512,15 @@
],
"description": "The experiment action taken action taken"
},
{
"name": "exportFormat",
"type": "string",
"allowedValues": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can reuse filenameExt

{
"name": "filenameExt",
"type": "string",
"description": "Filename extension (examples: .txt, .yml, .yaml, .asl.yaml, ...), or empty string if the filename does not contain dot (.) between two chars."
},

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

"html",
"markdown"
],
"description": "The file format chosen by the user when exporting chat history"
},
{
"name": "failedCount",
"type": "int",
Expand Down Expand Up @@ -1837,6 +1887,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",
Expand Down Expand Up @@ -2247,6 +2302,18 @@
"type": "cwsprChatActiveEditorTotalCharacters",
"required": false
},
{
"type": "cwsprChatCodeContextCount",
"required": false
},
{
"type": "cwsprChatCodeContextLength",
"required": false
},
{
"type": "cwsprChatCodeContextTruncatedLength",
"required": false
},
{
"type": "cwsprChatConversationId"
},
Expand Down Expand Up @@ -2602,6 +2669,20 @@
}
]
},
{
"name": "amazonq_exportTab",
"description": "When a user exports the current Amazon Q chat tab",
"metadata": [
{
"type": "exportFormat",
"required": true
},
{
"type": "languageServerVersion",
"required": false
}
]
},
{
"name": "amazonq_feedback",
"description": "When a user gives feedback using vote or comment or rating in the conversation",
Expand Down Expand Up @@ -2788,6 +2869,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",
Expand Down Expand Up @@ -2863,6 +2966,32 @@
}
]
},
{
"name": "amazonq_performChatHistoryAction",
"description": "When a user searches, exports, opens, or deletes a conversation from history",
"metadata": [
{
"type": "amazonqHistoryFileSize",
"required": false
},
{
"type": "amazonqTimeToSearchHistory",
"required": false
},
{
"type": "chatHistoryAction",
"required": true
},
{
"type": "exportFormat",
"required": false
},
{
"type": "languageServerVersion",
"required": false
}
]
},
{
"name": "amazonq_startConversationInvoke",
"description": "Captures startConversation invocation process",
Expand Down