Skip to content

Commit 7083115

Browse files
authored
amazonq: add raw suggestion token count to code percentage event (#812)
## Problem We are need both unmodified and raw chars count for code percentage event ## Solution Add another field for the raw token count
1 parent 5e77ae0 commit 7083115

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@
490490
{
491491
"name": "codewhispererAcceptedTokens",
492492
"type": "int",
493-
"description": "The metrics accepted on suggested CodeWhisperer code"
493+
"description": "The number of tokens that are accepted and not modified by the user"
494494
},
495495
{
496496
"name": "codewhispererAllCompletionsLatency",
@@ -766,6 +766,11 @@
766766
"type": "string",
767767
"description": "The unique identifier for a CodeWhisperer session(which can contain multiple requests)"
768768
},
769+
{
770+
"name": "codewhispererSuggestedTokens",
771+
"type": "int",
772+
"description": "The number of tokens in the original code suggestions"
773+
},
769774
{
770775
"name": "codewhispererSuggestionCount",
771776
"type": "int",
@@ -4378,6 +4383,10 @@
43784383
{
43794384
"type": "codewhispererPercentage"
43804385
},
4386+
{
4387+
"type": "codewhispererSuggestedTokens",
4388+
"required": false
4389+
},
43814390
{
43824391
"type": "codewhispererTotalTokens"
43834392
},

0 commit comments

Comments
 (0)