Skip to content

Commit b721116

Browse files
authored
telemetry(amazonq): add fields for code fix events (#963)
## Problem Need to understand: - How many users are using fix feature from /review (not auto-review) - How many fixes were generated/applied for each scanJob - How many code fix requests were unable to generate a fix ## Solution - Add flag `autoDetected` to be able to filter out auto-review findings - Add flag `includesFix`. - Add `codewhispererCodeScanJobId` to associate a fix action with a specific scan that produced the finding
1 parent ab46602 commit b721116

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@
158158
],
159159
"description": "The type of auth flow used for signing in"
160160
},
161+
{
162+
"name": "autoDetected",
163+
"type": "boolean",
164+
"description": "Whether the code issue was detected by auto-review"
165+
},
161166
{
162167
"name": "awsAccount",
163168
"type": "string",
@@ -4463,10 +4468,18 @@
44634468
"name": "codewhisperer_codeScanIssueApplyFix",
44644469
"description": "Called when a code scan issue suggested fix is applied",
44654470
"metadata": [
4471+
{
4472+
"type": "autoDetected",
4473+
"required": false
4474+
},
44664475
{
44674476
"type": "codeFixAction",
44684477
"required": false
44694478
},
4479+
{
4480+
"type": "codewhispererCodeScanJobId",
4481+
"required": false
4482+
},
44704483
{
44714484
"type": "component"
44724485
},
@@ -4490,6 +4503,14 @@
44904503
"name": "codewhisperer_codeScanIssueGenerateFix",
44914504
"description": "Generated fix for a code scan issue. variant=refresh means the user chose to generate a fix again after one already exists.",
44924505
"metadata": [
4506+
{
4507+
"type": "autoDetected",
4508+
"required": false
4509+
},
4510+
{
4511+
"type": "codewhispererCodeScanJobId",
4512+
"required": false
4513+
},
44934514
{
44944515
"type": "component"
44954516
},
@@ -4503,6 +4524,10 @@
45034524
{
45044525
"type": "findingId"
45054526
},
4527+
{
4528+
"type": "includesFix",
4529+
"required": false
4530+
},
45064531
{
45074532
"type": "ruleId",
45084533
"required": false

0 commit comments

Comments
 (0)