From 2b009d815c00e384f677fe645e411484da9f79f7 Mon Sep 17 00:00:00 2001 From: Lei Gao <97199248+leigaol@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:11:22 -0800 Subject: [PATCH] feat(amazonq): Add credential start url for amazonq events (#701) add credential start url for amazonq --- telemetry/definitions/commonDefinitions.json | 59 ++++++++++++++++---- 1 file changed, 47 insertions(+), 12 deletions(-) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index 90be05b1..d56fd161 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -2803,7 +2803,8 @@ "description": "Captures end of the conversation with amazonq /dev", "metadata": [ { "type": "amazonqConversationId" }, - { "type": "amazonqEndOfTheConversationLatency", "required": false } + { "type": "amazonqEndOfTheConversationLatency", "required": false }, + { "type": "credentialStartUrl", "required": false } ] }, { @@ -2812,13 +2813,17 @@ "metadata": [ { "type": "amazonqConversationId" }, { "type": "amazonqGenerateApproachIteration" }, - { "type": "amazonqGenerateApproachLatency" } + { "type": "amazonqGenerateApproachLatency" }, + { "type": "credentialStartUrl", "required": false } ] }, { "name": "amazonq_startConversationInvoke", "description": "Captures startConversation invocation process", - "metadata": [{ "type": "amazonqConversationId", "required": false }] + "metadata": [ + { "type": "amazonqConversationId", "required": false }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_createUpload", @@ -2826,13 +2831,18 @@ "metadata": [ { "type": "amazonqConversationId" }, { "type": "amazonqRepositorySize", "required": false }, + { "type": "credentialStartUrl", "required": false }, { "type": "amazonqUploadIntent", "required": false } ] }, { "name": "amazonq_isApproachAccepted", "description": "User has accepted the approach generated", - "metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }] + "metadata": [ + { "type": "enabled" }, + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_codeGenerationInvoke", @@ -2844,48 +2854,73 @@ { "type": "amazonqCodeGenerationResult" }, { "type": "amazonqNumberOfFilesGenerated", "required": false }, { "type": "amazonqRepositorySize" }, - { "type": "amazonqNumberOfReferences", "required": false } + { "type": "amazonqNumberOfReferences", "required": false }, + { "type": "credentialStartUrl", "required": false } ] }, { "name": "amazonq_isAcceptedCodeChanges", "description": "User applied code changes generated for the task.", - "metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }] + "metadata": [ + { "type": "enabled" }, + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_isProvideFeedbackForCodeGen", "description": "User asked to regenerate code generation with a comment", - "metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }] + "metadata": [ + { "type": "enabled" }, + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_isReviewedChanges", "description": "User reviewed changes", "passive": true, - "metadata": [{ "type": "enabled" }, { "type": "amazonqConversationId" }] + "metadata": [ + { "type": "enabled" }, + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_codeGenerationThumbsUp", "description": "User clicked on the thumbs up button to say that they are unsatisfied", "unit": "Count", - "metadata": [{ "type": "amazonqConversationId" }] + "metadata": [ + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_codeGenerationThumbsDown", "description": "User clicked on the thumbs down button to say that they are unsatisfied", "unit": "Count", - "metadata": [{ "type": "amazonqConversationId" }] + "metadata": [ + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_approachThumbsUp", "description": "User clicked on the thumbs up button, to mention that they are satisfied", "unit": "Count", - "metadata": [{ "type": "amazonqConversationId" }] + "metadata": [ + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "amazonq_approachThumbsDown", "description": "User clicked on the thumbs down button to say that they are unsatisfied", "unit": "Count", - "metadata": [{ "type": "amazonqConversationId" }] + "metadata": [ + { "type": "amazonqConversationId" }, + { "type": "credentialStartUrl", "required": false } + ] }, { "name": "codewhisperer_codePercentage",