Skip to content

Commit 95eb2bc

Browse files
telemetry: Code Scan Issue Fix diff usage (aws#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. <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## 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 <[email protected]>
1 parent ed4ed38 commit 95eb2bc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,17 @@
257257
"local"
258258
]
259259
},
260+
{
261+
"name": "codeFixAction",
262+
"type": "string",
263+
"description": "Captures the type of fix that was accepted",
264+
"allowedValues": [
265+
"openDiff",
266+
"insertAtCursor",
267+
"copyDiff",
268+
"applyFix"
269+
]
270+
},
260271
{
261272
"name": "codeScanServiceInvocationsDuration",
262273
"type": "int",
@@ -4352,6 +4363,9 @@
43524363
"name": "codewhisperer_codeScanIssueApplyFix",
43534364
"description": "Called when a code scan issue suggested fix is applied",
43544365
"metadata": [
4366+
{
4367+
"type": "codeFixAction"
4368+
},
43554369
{
43564370
"type": "component"
43574371
},

0 commit comments

Comments
 (0)