You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Send empty telemetry event for empty recommendations (#3245)
1. There are two types of empty recommendations server could
return to the client. The first one is an empty list of recommendations.
The second one is a list of recommendations but some recommendations
are empty (strings). Previously we don't send user decision events
for both cases. This is resulting in a discrepancy between serviceInvocation
event and userDecision event per codewhispererSessionId. We decided to send
userDecision events for both. Additionally, for empty list, we just send
the event and stop early, since there isn't additonal things to render.
For empty recommendations, they will be kept in the state but not shown
to the users, and userDecision events for them will be sent later when
we send events for all recommendations we received on session close.
Copy file name to clipboardExpand all lines: jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/popup/CodeWhispererPopupManager.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -570,6 +570,7 @@ class CodeWhispererPopupManager {
Copy file name to clipboardExpand all lines: jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/telemetry/CodeWhispererTelemetryService.kt
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ class CodeWhispererTelemetryService {
75
75
)
76
76
}
77
77
78
-
privatefunsendUserDecisionEvent(
78
+
funsendUserDecisionEvent(
79
79
requestId:String,
80
80
requestContext:RequestContext,
81
81
responseContext:ResponseContext,
@@ -185,7 +185,8 @@ class CodeWhispererTelemetryService {
0 commit comments