Skip to content

Commit f35b107

Browse files
authored
feat(tele): Add amazonq_ (awqs_) metrics (#617)
* feat(tele): Add amazonq_ (awqs_) metrics
1 parent f269307 commit f35b107

File tree

1 file changed

+130
-0
lines changed

1 file changed

+130
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,47 @@
875875
"name": "awsqConversationId",
876876
"type": "string",
877877
"description": "Uniquely identifies a message with which the user interacts."
878+
},
879+
{
880+
"name": "amazonqConversationId",
881+
"type": "string",
882+
"description": "Uniquely identifies a message with which the user interacts."
883+
},
884+
{
885+
"name": "amazonqGenerateApproachIteration",
886+
"type": "int",
887+
"description": "Order of approach iteration. For initial code changes it is 0"
888+
},
889+
{
890+
"name": "amazonGenerateApproachLatency",
891+
"type": "double",
892+
"description": "The time it takes to generate approach response"
893+
},
894+
{
895+
"name": "amazonqGenerateCodeIteration",
896+
"type": "int",
897+
"description": "Order of code generation iteration. For initial code changes it is 0"
898+
},
899+
{
900+
"name": "amazonqGenerateCodeResponseLatency",
901+
"type": "double",
902+
"description": "The time it takes to generate code generation response"
903+
},
904+
{
905+
"name": "amazonqCodeGenerationResult",
906+
"type": "double",
907+
"description": "Captures if code generation result is Complete, Failed,etc"
908+
},
909+
{
910+
"name": "amazonqNumberOfFilesGenerated",
911+
"type": "int",
912+
"description": "Captures the number of files generated as a part of code generation iteration"
913+
},
914+
915+
{
916+
"name": "amazonqRepositorySize",
917+
"type": "int",
918+
"description": "Captures size of the source code"
878919
}
879920
],
880921
"metrics": [
@@ -2663,6 +2704,95 @@
26632704
"description": "User has accepted the approach generated by Weaverbird.",
26642705
"metadata": [{ "type": "enabled" }, { "type": "awsqConversationId" }]
26652706
},
2707+
{
2708+
"name": "amazonq_startChat",
2709+
"description": "Number of times the user have triggered /dev and started the chat",
2710+
"unit": "Count",
2711+
"metadata": [{ "type": "amazonqConversationId" }]
2712+
},
2713+
{
2714+
"name": "amazonq_approachInvoke",
2715+
"description": "Emitted when the user started Approach process and captures if the proccess succeeded or failed.",
2716+
"metadata": [
2717+
{ "type": "amazonqConversationId" },
2718+
{ "type": "result" },
2719+
{ "type": "reason", "required": false }
2720+
]
2721+
},
2722+
{
2723+
"name": "amazonq_approachIteration",
2724+
"description": "User recieved a result in Approach Iteration stage",
2725+
"metadata": [
2726+
{ "type": "amazonqConversationId" },
2727+
{ "type": "amazonqGenerateApproachIteration" },
2728+
{ "type": "amazonGenerateApproachLatency" }
2729+
]
2730+
},
2731+
{
2732+
"name": "amazonq_isApproachAccepted",
2733+
"description": "User has accepted the approach generated by Weaverbird.",
2734+
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
2735+
},
2736+
{
2737+
"name": "amazonq_codeGenerationInvoke",
2738+
"description": "Emitted when the user started Code Generation process and captures if the proccess succeeded or failed.",
2739+
"metadata": [
2740+
{ "type": "amazonqConversationId" },
2741+
{ "type": "result" },
2742+
{ "type": "reason", "required": false }
2743+
]
2744+
},
2745+
{
2746+
"name": "amazonq_codeGenerationIteration",
2747+
"description": "User recieved a result in Code Generation Iteration stage",
2748+
"metadata": [
2749+
{ "type": "amazonqConversationId" },
2750+
{ "type": "amazonqGenerateCodeIteration" },
2751+
{ "type": "amazonqGenerateCodeResponseLatency" },
2752+
{ "type": "amazonqCodeGenerationResult" },
2753+
{ "type": "amazonqNumberOfFilesGenerated" },
2754+
{ "type": "amazonqRepositorySize" }
2755+
]
2756+
},
2757+
{
2758+
"name": "amazonq_isAcceptedCodeChanges",
2759+
"description": "User applied code changes generated for the task.",
2760+
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
2761+
},
2762+
{
2763+
"name": "amazonq_isRejectedCodeChanges",
2764+
"description": "User rejected code changes generated for the task.",
2765+
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
2766+
},
2767+
{
2768+
"name": "amazonq_isReviewedChanges",
2769+
"description": "User reviewed changes",
2770+
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
2771+
},
2772+
{
2773+
"name": "amazonq_codeGenerationThumbsUp",
2774+
"description": "User clicked on the thumbs up button to say that they are unsatisfied",
2775+
"unit": "Count",
2776+
"metadata": [{ "type": "amazonqConversationId" }]
2777+
},
2778+
{
2779+
"name": "amazonq_codeGenerationThumbsDown",
2780+
"description": "User clicked on the thumbs down button to say that they are unsatisfied",
2781+
"unit": "Count",
2782+
"metadata": [{ "type": "amazonqConversationId" }]
2783+
},
2784+
{
2785+
"name": "amazonq_approachThumbsUp",
2786+
"description": "User clicked on the thumbs up button, to mention that they are satisfied",
2787+
"unit": "Count",
2788+
"metadata": [{ "type": "amazonqConversationId" }]
2789+
},
2790+
{
2791+
"name": "amazonq_approachThumbsDown",
2792+
"description": "User clicked on the thumbs down button to say that they are unsatisfied",
2793+
"unit": "Count",
2794+
"metadata": [{ "type": "amazonqConversationId" }]
2795+
},
26662796
{
26672797
"name": "codewhisperer_codePercentage",
26682798
"description": "Percentage of user tokens against suggestions until 5 mins of time",

0 commit comments

Comments
 (0)