Skip to content

Commit 5af3494

Browse files
author
David Hasani
committed
update api model
1 parent 5b019e7 commit 5af3494

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/core/src/codewhisperer/client/codewhisperer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ export class DefaultCodeWhispererClient {
258258
if (!AuthUtil.instance.isValidEnterpriseSsoInUse() && !globals.telemetry.telemetryEnabled) {
259259
return
260260
}
261+
console.log('about to make API call')
261262
const response = await (await this.createUserSdkClient()).sendTelemetryEvent(requestWithCommonFields).promise()
263+
console.log('API call response =', response)
262264
getLogger().debug(`codewhisperer: sendTelemetryEvent requestID: ${response.$response.requestId}`)
263265
}
264266

packages/core/src/codewhisperer/client/user-service-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2961,4 +2961,4 @@
29612961
"min": 0
29622962
}
29632963
}
2964-
}
2964+
}

packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@ export class ProposedTransformationExplorer {
408408
const metricsPath = path.join(pathContainingArchive, ExportResultArchiveStructure.PathToMetrics)
409409
const metricsData = JSON.parse(fs.readFileSync(metricsPath, 'utf8'))
410410

411+
console.log('metricsData.linesOfCodeChanged =', metricsData.linesOfCodeChanged)
412+
console.log('metricsData.charactersOfCodeChanged =', metricsData.charactersOfCodeChanged)
413+
console.log('linesOfCodeSubmitted =', transformByQState.getLinesOfCodeSubmitted())
414+
console.log('transformByQState.getTransformationType() =', transformByQState.getTransformationType())
415+
411416
await codeWhisperer.codeWhispererClient.sendTelemetryEvent({
412417
telemetryEvent: {
413418
transformEvent: {

0 commit comments

Comments
 (0)