Skip to content

Commit 08818ee

Browse files
authored
feat(codewhisperer): add new field in sendTelemetryEvent (#4058)
1 parent 2797d35 commit 08818ee

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/credentials/CodeWhispererClientAdaptor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ open class CodeWhispererClientAdaptorImpl(override val project: Project) : CodeW
244244
it.programmingLanguage { builder -> builder.languageName(programmingLanguage.toCodeWhispererRuntimeLanguage().languageId) }
245245
it.sessionId(responseContext.sessionId)
246246
it.recommendationLatencyMilliseconds(e2eLatency)
247+
it.triggerToResponseLatencyMilliseconds(requestContext.latencyContext.paginationFirstCompletionTime)
247248
it.suggestionState(suggestionState.toCodeWhispererSdkType())
248249
it.timestamp(Instant.now())
249250
it.suggestionReferenceCount(suggestionReferenceCount)

jetbrains-core/src/software/aws/toolkits/jetbrains/services/telemetry/ClientMetadata.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ data class ClientMetadata(
4040
.operatingSystem(osForCodeWhisperer)
4141
.product(FEATURE_EVALUATION_PRODUCT_NAME)
4242
.clientId(clientId)
43+
.ideVersion(productVersion)
4344
.build()
4445
}

sdk-codegen/codegen-resources/codewhispererruntime/service-2.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,8 @@
14721472
"ideCategory":{"shape":"IdeCategory"},
14731473
"operatingSystem":{"shape":"OperatingSystem"},
14741474
"product":{"shape":"UserContextProductString"},
1475-
"clientId":{"shape":"UUID"}
1475+
"clientId":{"shape":"UUID"},
1476+
"ideVersion":{"shape":"String"}
14761477
}
14771478
},
14781479
"UserContextProductString":{
@@ -1553,6 +1554,7 @@
15531554
"suggestionState":{"shape":"SuggestionState"},
15541555
"recommendationLatencyMilliseconds":{"shape":"Double"},
15551556
"timestamp":{"shape":"Timestamp"},
1557+
"triggerToResponseLatencyMilliseconds":{"shape":"Double"},
15561558
"suggestionReferenceCount":{"shape":"PrimitiveInteger"},
15571559
"generatedLine":{"shape":"PrimitiveInteger"},
15581560
"numberOfRecommendations":{"shape":"PrimitiveInteger"}

0 commit comments

Comments
 (0)