File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/core/src/codewhisperer/service/transformByQ Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -408,14 +408,19 @@ export class ProposedTransformationExplorer {
408408 const metricsPath = path . join ( pathContainingArchive , ExportResultArchiveStructure . PathToMetrics )
409409 const metricsData = JSON . parse ( fs . readFileSync ( metricsPath , 'utf8' ) )
410410
411+ console . log ( 'locChanged = ' , metricsData . linesOfCodeChanged )
412+ console . log ( 'charsChanged = ' , metricsData . charsOfCodeChanged )
413+ console . log ( 'linesSubmitted = ' , transformByQState . getLinesOfCodeSubmitted ( ) )
414+
415+ // TO-DO: add support for SQL conversions; right now these metrics are only available for Java upgrades
411416 await codeWhisperer . codeWhispererClient . sendTelemetryEvent ( {
412417 telemetryEvent : {
413418 transformEvent : {
414419 jobId : transformByQState . getJobId ( ) ,
415420 timestamp : new Date ( ) ,
416421 ideCategory : 'VSCODE' ,
417422 programmingLanguage : {
418- languageName : 'JAVA' , // TO-DO: use transformByQState.getTransformationType() to tell if JAVA or SQL
423+ languageName : 'JAVA' ,
419424 } ,
420425 linesOfCodeChanged : metricsData . linesOfCodeChanged ,
421426 charsOfCodeChanged : metricsData . charsOfCodeChanged ,
You can’t perform that action at this time.
0 commit comments