Skip to content

Commit 6989096

Browse files
committed
fix: debug telemetry
1 parent af80c9d commit 6989096

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

packages/core/src/login/webview/vue/amazonq/backend_amazonq.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ export class AmazonQLoginWebview extends CommonAuthWebview {
233233
const result = await runAuth()
234234
this.storeMetricMetadata({
235235
credentialSourceId: 'sharedCredentials',
236-
authEnabledFeatures: 'codewhisperer',
236+
featureId: 'codewhisperer',
237237
credentialType: credentialsType,
238+
isReAuth: false,
239+
isAggregated: false,
238240
...this.getResultForMetrics(result),
239241
})
240242
this.emitAuthMetric()

packages/core/src/login/webview/vue/backend.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,6 @@ export abstract class CommonAuthWebview extends VueWebview {
231231
} as AuthAddConnection)
232232
}
233233

234-
emitIamClick() {
235-
telemetry.ui_click.emit({
236-
elementId: 'Use with IAM Credentials',
237-
})
238-
}
239-
240234
/**
241235
* Incrementally store auth metric data during vue, backend sign in logic,
242236
* and cancellation flows.

packages/core/src/login/webview/vue/login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ export default defineComponent({
513513
}
514514
} else if (this.selectedLoginOption === LoginOption.IAM_CREDENTIAL) {
515515
// Emit telemetry when IAM Credentials option is selected and Continue is clicked
516-
void client.emitIamClick()
516+
void client.emitUiClick('auth_credentialsOption')
517517
518518
this.stage = 'AWS_PROFILE'
519519
this.$nextTick(() => document.getElementById('profileName')!.focus())

0 commit comments

Comments
 (0)