-
Notifications
You must be signed in to change notification settings - Fork 274
telemetry(amazonq): combine metrics #5227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| private var totalPatchFiles: Int = 0 | ||
| private var sharedPatchIndex: Int = 0 | ||
|
|
||
| internal suspend fun displayDiff(job: JobId, source: CodeTransformVCSViewerSrcComponents) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed source because it's not useful to us
| codeTransformMetadata = metaData.toString(), | ||
| codeTransformSessionId = sessionId, | ||
| reason = reason, | ||
| result = if (success) MetricResult.Succeeded else MetricResult.Failed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would recommend using Result.Succeeded and Result.Failed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that Result is deprecated in favor of MetricResult
* telemetry(amazonq): combine metrics * remove unneeded field * re-run CI * remove unused property * fix detekt --------- Co-authored-by: David Hasani <[email protected]>
* telemetry(amazonq): combine metrics * remove unneeded field * re-run CI * remove unused property * fix detekt --------- Co-authored-by: David Hasani <[email protected]>

Types of changes
Description
Just use
submitSelection;viewArtifactis redundant.Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.