Skip to content

Commit 84ae30e

Browse files
authored
feat(amazonq): add missing metrics (#622)
* feat(telemetry): amazonq_ add missing metrics
1 parent 605c89a commit 84ae30e

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,20 @@
901901
"type": "double",
902902
"description": "Captures the number of files generated as a part of code generation iteration"
903903
},
904-
905904
{
906905
"name": "amazonqRepositorySize",
907906
"type": "double",
908907
"description": "Captures size of the source code"
908+
},
909+
{
910+
"name": "amazonqNumberOfReferences",
911+
"type": "double",
912+
"description": "Captures the number of references"
913+
},
914+
{
915+
"name": "amazonqEndOfTheConversationLatency",
916+
"type": "double",
917+
"description": "Total time from start to end"
909918
}
910919
],
911920
"metrics": [
@@ -2602,17 +2611,16 @@
26022611
"metadata": [{ "type": "amazonqConversationId" }]
26032612
},
26042613
{
2605-
"name": "amazonq_approachInvoke",
2606-
"description": "Emitted when the user started Approach process and captures if the proccess succeeded or failed.",
2614+
"name": "amazonq_endChat",
2615+
"description": "Captures end of the conversation with amazonq /dev",
26072616
"metadata": [
26082617
{ "type": "amazonqConversationId" },
2609-
{ "type": "result" },
2610-
{ "type": "reason", "required": false }
2618+
{ "type": "amazonqEndOfTheConversationLatency", "required": false }
26112619
]
26122620
},
26132621
{
2614-
"name": "amazonq_approachIteration",
2615-
"description": "User recieved a result in Approach Iteration stage",
2622+
"name": "amazonq_approachInvoke",
2623+
"description": "Captures Approach generation process",
26162624
"metadata": [
26172625
{ "type": "amazonqConversationId" },
26182626
{ "type": "amazonqGenerateApproachIteration" },
@@ -2622,27 +2630,19 @@
26222630
{
26232631
"name": "amazonq_isApproachAccepted",
26242632
"description": "User has accepted the approach generated",
2625-
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
2633+
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
26262634
},
26272635
{
26282636
"name": "amazonq_codeGenerationInvoke",
2629-
"description": "Emitted when the user started Code Generation process and captures if the proccess succeeded or failed.",
2630-
"metadata": [
2631-
{ "type": "amazonqConversationId" },
2632-
{ "type": "result" },
2633-
{ "type": "reason", "required": false }
2634-
]
2635-
},
2636-
{
2637-
"name": "amazonq_codeGenerationIteration",
2638-
"description": "User recieved a result in Code Generation Iteration stage",
2637+
"description": "Captures Code Generation generation process",
26392638
"metadata": [
26402639
{ "type": "amazonqConversationId" },
26412640
{ "type": "amazonqGenerateCodeIteration" },
26422641
{ "type": "amazonqGenerateCodeResponseLatency" },
26432642
{ "type": "amazonqCodeGenerationResult" },
2644-
{ "type": "amazonqNumberOfFilesGenerated" },
2645-
{ "type": "amazonqRepositorySize" }
2643+
{ "type": "amazonqNumberOfFilesGenerated", "required": false },
2644+
{ "type": "amazonqRepositorySize" },
2645+
{ "type": "amazonqNumberOfReferences", "required": false }
26462646
]
26472647
},
26482648
{
@@ -2651,13 +2651,14 @@
26512651
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
26522652
},
26532653
{
2654-
"name": "amazonq_isRejectedCodeChanges",
2655-
"description": "User rejected code changes generated for the task.",
2654+
"name": "amazonq_isProvideFeedbackForCodeGen",
2655+
"description": "User asked to regenerate code generation with a comment",
26562656
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
26572657
},
26582658
{
26592659
"name": "amazonq_isReviewedChanges",
26602660
"description": "User reviewed changes",
2661+
"passive": true,
26612662
"metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }]
26622663
},
26632664
{

0 commit comments

Comments
 (0)