Skip to content

Commit ff4b234

Browse files
authored
telemetry(amazonq): Add lengths and truncated lengths telemetry (#1007)
For current file, workspace and user input. ## Problem ## Solution <!--- 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 74e58e1 commit ff4b234

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,16 @@
10271027
"type": "int",
10281028
"description": "Truncated length of files added to context"
10291029
},
1030+
{
1031+
"name": "cwsprChatFocusFileContextLength",
1032+
"type": "int",
1033+
"description": "Total length of current focus file added to context"
1034+
},
1035+
{
1036+
"name": "cwsprChatFocusFileContextTruncatedLength",
1037+
"type": "int",
1038+
"description": "Truncated length of current focus file added to context"
1039+
},
10301040
{
10311041
"name": "cwsprChatFolderContextCount",
10321042
"type": "int",
@@ -1210,6 +1220,16 @@
12101220
],
12111221
"description": "Identifies the specific interaction that opens the chat panel"
12121222
},
1223+
{
1224+
"name": "cwsprChatUserInputContextLength",
1225+
"type": "int",
1226+
"description": "Total length of user inputs added to context"
1227+
},
1228+
{
1229+
"name": "cwsprChatUserInputContextTruncatedLength",
1230+
"type": "int",
1231+
"description": "Truncated length of user inputs added to context"
1232+
},
12131233
{
12141234
"name": "cwsprChatUserIntent",
12151235
"type": "string",
@@ -1225,6 +1245,16 @@
12251245
],
12261246
"description": "Explict user intent associated with a chat message"
12271247
},
1248+
{
1249+
"name": "cwsprChatWorkspaceContextLength",
1250+
"type": "int",
1251+
"description": "Total length of workspace context"
1252+
},
1253+
{
1254+
"name": "cwsprChatWorkspaceContextTruncatedLength",
1255+
"type": "int",
1256+
"description": "Truncated length of workspace context"
1257+
},
12281258
{
12291259
"name": "databaseCredentials",
12301260
"type": "string",
@@ -2201,6 +2231,14 @@
22012231
"type": "cwsprChatFileContextTruncatedLength",
22022232
"required": false
22032233
},
2234+
{
2235+
"type": "cwsprChatFocusFileContextLength",
2236+
"required": false
2237+
},
2238+
{
2239+
"type": "cwsprChatFocusFileContextTruncatedLength",
2240+
"required": false
2241+
},
22042242
{
22052243
"type": "cwsprChatFolderContextCount",
22062244
"required": false
@@ -2310,9 +2348,25 @@
23102348
{
23112349
"type": "cwsprChatTriggerInteraction"
23122350
},
2351+
{
2352+
"type": "cwsprChatUserInputContextLength",
2353+
"required": false
2354+
},
2355+
{
2356+
"type": "cwsprChatUserInputContextTruncatedLength",
2357+
"required": false
2358+
},
23132359
{
23142360
"type": "cwsprChatUserIntent",
23152361
"required": false
2362+
},
2363+
{
2364+
"type": "cwsprChatWorkspaceContextLength",
2365+
"required": false
2366+
},
2367+
{
2368+
"type": "cwsprChatWorkspaceContextTruncatedLength",
2369+
"required": false
23162370
}
23172371
]
23182372
},

0 commit comments

Comments
 (0)