Skip to content

Commit c851437

Browse files
authored
telemetry(amazonq): missing autoDetected for metrics (#5430)
1 parent baa3370 commit c851437

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mockitoKotlin = "5.4.0"
2727
mockk = "1.13.10"
2828
nimbus-jose-jwt = "9.40"
2929
node-gradle = "7.0.2"
30-
telemetryGenerator = "1.0.297"
30+
telemetryGenerator = "1.0.301"
3131
testLogger = "4.0.0"
3232
testRetry = "1.5.10"
3333
# test-only; platform provides slf4j transitively at runtime

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/telemetry/CodeWhispererTelemetryService.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ class CodeWhispererTelemetryService {
356356
detectorId = issue.detectorId,
357357
ruleId = issue.ruleId,
358358
includesFix = issue.suggestedFixes.isNotEmpty(),
359-
credentialStartUrl = getCodeWhispererStartUrl(issue.project)
359+
credentialStartUrl = getCodeWhispererStartUrl(issue.project),
360+
autoDetected = issue.autoDetected
360361
)
361362
}
362363

@@ -392,7 +393,8 @@ class CodeWhispererTelemetryService {
392393
findingId = issue.findingId,
393394
detectorId = issue.detectorId,
394395
ruleId = issue.ruleId,
395-
variant = if (isIgnoreAll) "all" else null
396+
variant = if (isIgnoreAll) "all" else null,
397+
autoDetected = issue.autoDetected
396398
)
397399
}
398400

0 commit comments

Comments
 (0)