Skip to content

Commit c30c6aa

Browse files
committed
lint
1 parent b096f26 commit c30c6aa

File tree

1 file changed

+6
-4
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry

1 file changed

+6
-4
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class TelemetryHelper(private val project: Project, private val sessionStorage:
7272
// When chat panel is focused
7373
fun recordEnterFocusChat() {
7474
Telemetry.amazonq.enterFocusChat.use { it.passive(true) }
75-
7675
}
7776

7877
// When chat panel is unfocused
@@ -178,7 +177,6 @@ class TelemetryHelper(private val project: Project, private val sessionStorage:
178177
.cwsprChatRequestLength(data.message.length.toLong())
179178
.cwsprChatConversationType(CwsprChatConversationType.Chat)
180179
.credentialStartUrl(getStartUrl(project))
181-
182180
}
183181
}
184182

@@ -297,11 +295,16 @@ class TelemetryHelper(private val project: Project, private val sessionStorage:
297295
}
298296

299297
is IncomingCwcMessage.ChatItemFeedback -> {
298+
span.cwsprChatInteractionType(CwsprChatInteractionType.Unknown)
300299
recordFeedback(message)
301300
null
302301
}
303302

304-
else -> null
303+
else -> {
304+
span.cwsprChatInteractionType(CwsprChatInteractionType.Unknown)
305+
306+
null
307+
}
305308
}?.let {
306309
// override request and add customizationArn if it's not null, else return itself
307310
customization?.let { myCustomization ->
@@ -409,7 +412,6 @@ class TelemetryHelper(private val project: Project, private val sessionStorage:
409412

410413
fun recordOpenChat() {
411414
Telemetry.amazonq.openChat.use { it.passive(true) }
412-
413415
}
414416

415417
fun recordCloseChat() {

0 commit comments

Comments
 (0)