From 95eb2bc1774c478bec70869fa3948961b87e2c38 Mon Sep 17 00:00:00 2001 From: invictus <149003065+ashishrp-aws@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:32:41 -0800 Subject: [PATCH] telemetry: Code Scan Issue Fix diff usage (#907) ## Problem Need to record Telemetry when user is accepting code scan issue generated fix with three options of viewing code, inserting or copying it. ## Solution - Added Telemetry event to record it. ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Tai Lai --- telemetry/definitions/commonDefinitions.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index dc309254..15d6d5dc 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -257,6 +257,17 @@ "local" ] }, + { + "name": "codeFixAction", + "type": "string", + "description": "Captures the type of fix that was accepted", + "allowedValues": [ + "openDiff", + "insertAtCursor", + "copyDiff", + "applyFix" + ] + }, { "name": "codeScanServiceInvocationsDuration", "type": "int", @@ -4352,6 +4363,9 @@ "name": "codewhisperer_codeScanIssueApplyFix", "description": "Called when a code scan issue suggested fix is applied", "metadata": [ + { + "type": "codeFixAction" + }, { "type": "component" },