Skip to content

Commit 2dd3bca

Browse files
committed
Add lengths and truncated lengths telemetry
for current file, workspace and user input.
1 parent 74e58e1 commit 2dd3bca

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
@@ -1012,6 +1012,16 @@
10121012
],
10131013
"description": "Identifies the type of conversation"
10141014
},
1015+
{
1016+
"name": "cwsprChatCurrentFileContextLength",
1017+
"type": "int",
1018+
"description": "Total length of current file added to context"
1019+
},
1020+
{
1021+
"name": "cwsprChatCurrentFileContextTruncatedLength",
1022+
"type": "int",
1023+
"description": "Truncated length of current file added to context"
1024+
},
10151025
{
10161026
"name": "cwsprChatFileContextCount",
10171027
"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",
@@ -2189,6 +2219,14 @@
21892219
{
21902220
"type": "cwsprChatConversationType"
21912221
},
2222+
{
2223+
"type": "cwsprChatCurrentFileContextLength",
2224+
"required": false
2225+
},
2226+
{
2227+
"type": "cwsprChatCurrentFileContextTruncatedLength",
2228+
"required": false
2229+
},
21922230
{
21932231
"type": "cwsprChatFileContextCount",
21942232
"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)