Skip to content

Commit a8b0994

Browse files
authored
telemetry: add additional context types to amazonq_interactWithMessage (#986)
## Problem We want to understand if there is a change in user interaction with messages that include the new falcon features. This will help us evaluate the success of the features. ## Solution - Add # of files, # of folders, # of prompts, and # of rules to the amazonq_interactWithMessage metric <!--- 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 384fb4f commit a8b0994

File tree

1 file changed

+55
-3
lines changed

1 file changed

+55
-3
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,16 @@
990990
"type": "string",
991991
"description": "Uniquely identifies a message with which the user interacts."
992992
},
993+
{
994+
"name": "cwsprChatFileContextCount",
995+
"type": "int",
996+
"description": "Number of files manually added to context"
997+
},
998+
{
999+
"name": "cwsprChatFolderContextCount",
1000+
"type": "int",
1001+
"description": "Number of folders manually added to context"
1002+
},
9931003
{
9941004
"name": "cwsprChatHasProjectContext",
9951005
"type": "boolean",
@@ -1033,6 +1043,16 @@
10331043
"type": "string",
10341044
"description": "Programming language associated with the message"
10351045
},
1046+
{
1047+
"name": "cwsprChatPromptContextCount",
1048+
"type": "int",
1049+
"description": "Number of saved prompts manually added to context"
1050+
},
1051+
{
1052+
"name": "cwsprChatRuleContextCount",
1053+
"type": "int",
1054+
"description": "Number of workspace rules automatically added to context"
1055+
},
10361056
{
10371057
"name": "cwsprChatTotalCodeBlocks",
10381058
"type": "int",
@@ -1514,13 +1534,25 @@
15141534
{
15151535
"name": "languageServerLocation",
15161536
"type": "string",
1517-
"allowedValues": ["cache", "remote", "fallback", "override"],
1537+
"allowedValues": [
1538+
"cache",
1539+
"remote",
1540+
"fallback",
1541+
"override"
1542+
],
15181543
"description": "The location of the language server"
15191544
},
15201545
{
15211546
"name": "languageServerSetupStage",
15221547
"type": "string",
1523-
"allowedValues": ["getManifest", "getServer", "validate", "launch", "handshake", "all"],
1548+
"allowedValues": [
1549+
"getManifest",
1550+
"getServer",
1551+
"validate",
1552+
"launch",
1553+
"handshake",
1554+
"all"
1555+
],
15241556
"description": "The stage of the LSP setup process"
15251557
},
15261558
{
@@ -1541,7 +1573,11 @@
15411573
{
15421574
"name": "manifestLocation",
15431575
"type": "string",
1544-
"allowedValues": ["cache", "remote", "override"],
1576+
"allowedValues": [
1577+
"cache",
1578+
"remote",
1579+
"override"
1580+
],
15451581
"description": "The location of the manifest"
15461582
},
15471583
{
@@ -2193,6 +2229,14 @@
21932229
"type": "cwsprChatConversationId",
21942230
"required": true
21952231
},
2232+
{
2233+
"type": "cwsprChatFileContextCount",
2234+
"required": false
2235+
},
2236+
{
2237+
"type": "cwsprChatFolderContextCount",
2238+
"required": false
2239+
},
21962240
{
21972241
"type": "cwsprChatHasProjectContext",
21982242
"required": false
@@ -2217,6 +2261,14 @@
22172261
"type": "cwsprChatProgrammingLanguage",
22182262
"required": false
22192263
},
2264+
{
2265+
"type": "cwsprChatPromptContextCount",
2266+
"required": false
2267+
},
2268+
{
2269+
"type": "cwsprChatRuleContextCount",
2270+
"required": false
2271+
},
22202272
{
22212273
"type": "cwsprChatTotalCodeBlocks",
22222274
"required": false

0 commit comments

Comments
 (0)