Skip to content

Commit

Permalink
telemetry(amazonq): add metric for transformation type (#5218)
Browse files Browse the repository at this point in the history
Co-authored-by: David Hasani <[email protected]>
  • Loading branch information
dhasani23 and David Hasani authored Dec 23, 2024
1 parent 18f39eb commit 297cb06
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,15 @@ class CodeTransformChatController(
}

private suspend fun handleSQLConversion() {
telemetry.submitSelection("sql conversion")
this.validateAndReplyOnError(CodeTransformType.SQL_CONVERSION) ?: return
codeTransformChatHelper.addNewMessage(
buildUserInputSQLConversionMetadataChatContent()
)
}

private suspend fun handleLanguageUpgrade() {
telemetry.submitSelection("language upgrade")
val validationResult = this.validateAndReplyOnError(CodeTransformType.LANGUAGE_UPGRADE) ?: return
codeTransformChatHelper.updateLastPendingMessage(
buildLanguageUpgradeProjectValidChatContent()
Expand Down

0 comments on commit 297cb06

Please sign in to comment.