Skip to content

Commit 990b577

Browse files
committed
Minor fixes
1 parent 39a9a64 commit 990b577

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

packages/core/src/amazonqTest/chat/controller/controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,8 @@ export class TestController {
862862
'200',
863863
session.isCodeBlockSelected,
864864
session.artifactsUploadDuration,
865+
session.srcPayloadSize,
866+
session.srcZipFileSize,
865867
0,
866868
0,
867869
0,

packages/core/src/amazonqTest/chat/controller/messenger/messenger.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,21 @@ export class Messenger {
280280
'Cancelled',
281281
messageId,
282282
performance.now() - session.testGenerationStartTime,
283-
getTelemetryReasonDesc(CodeWhispererConstants.unitTestGenerationCancelMessage),
284-
'400'
283+
getTelemetryReasonDesc(
284+
`TestGenCancelled: ${CodeWhispererConstants.unitTestGenerationCancelMessage}`
285+
),
286+
'400',
287+
undefined,
288+
undefined,
289+
undefined,
290+
undefined,
291+
undefined,
292+
undefined,
293+
undefined,
294+
undefined,
295+
undefined,
296+
undefined,
297+
'TestGenCancelled'
285298
)
286299
this.dispatcher.sendUpdatePromptProgress(
287300
new UpdatePromptProgressMessage(tabID, cancellingProgressField)
@@ -295,7 +308,7 @@ export class Messenger {
295308
messageId,
296309
performance.now() - session.testGenerationStartTime,
297310
undefined,
298-
'200',
311+
'200'
299312
)
300313
this.dispatcher.sendUpdatePromptProgress(
301314
new UpdatePromptProgressMessage(tabID, testGenCompletedField)

0 commit comments

Comments
 (0)