Skip to content

Commit 11b5100

Browse files
authored
telemetry(amazonq): folder level telemetry data undefined issue #6202
## Problem When users don't choose a different folder during document generation, the current telemetry will log folder level as undefined ## Solution Change the default workspace value to "Entire Workspace" to match the default behavior of the UX flow.
1 parent b702dcd commit 11b5100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/amazonqDoc/controllers/docGenerationTask.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class DocGenerationTask {
2020
public interactionType?: DocGenerationInteractionType
2121
public userIdentity?: string
2222
public numberOfNavigation = 0
23-
public folderLevel?: DocGenerationFolderLevel
23+
public folderLevel: DocGenerationFolderLevel = 'ENTIRE_WORKSPACE'
2424

2525
constructor(conversationId?: string) {
2626
this.conversationId = conversationId
@@ -57,6 +57,6 @@ export class DocGenerationTask {
5757
this.interactionType = undefined
5858
this.userIdentity = undefined
5959
this.numberOfNavigation = 0
60-
this.folderLevel = undefined
60+
this.folderLevel = 'ENTIRE_WORKSPACE'
6161
}
6262
}

0 commit comments

Comments
 (0)