Skip to content

Commit

Permalink
move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Nov 5, 2024
1 parent 2cb38f7 commit 62053bf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,19 @@ export class ProposedTransformationExplorer {
const metricsPath = path.join(pathContainingArchive, ExportResultArchiveStructure.PathToMetrics)
const metricsData = JSON.parse(fs.readFileSync(metricsPath, 'utf8'))

console.log('locChanged = ', metricsData.linesOfCodeChanged)
console.log('charsChanged = ', metricsData.charsOfCodeChanged)
console.log('linesSubmitted = ', transformByQState.getLinesOfCodeSubmitted())

// TO-DO: add support for SQL conversions; right now these metrics are only available for Java upgrades
await codeWhisperer.codeWhispererClient.sendTelemetryEvent({
telemetryEvent: {
transformEvent: {
jobId: transformByQState.getJobId(),
timestamp: new Date(),
ideCategory: 'VSCODE',
programmingLanguage: {
languageName: 'JAVA', // TO-DO: use transformByQState.getTransformationType() to tell if JAVA or SQL
languageName: 'JAVA',
},
linesOfCodeChanged: metricsData.linesOfCodeChanged,
charsOfCodeChanged: metricsData.charsOfCodeChanged,
Expand Down

0 comments on commit 62053bf

Please sign in to comment.