-
Notifications
You must be signed in to change notification settings - Fork 472
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
telemetry(amazonq): emit TransformEvent metric from download ZIP #5905
Conversation
This pull request modifies code in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required. |
|
packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts
Outdated
Show resolved
Hide resolved
d328ee5
to
b840289
Compare
transformEvent: { | ||
jobId: transformByQState.getJobId(), | ||
timestamp: new Date(), | ||
ideCategory: 'VSCODE', |
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.
Is there any constant value we can extract this VSCODE
value from? Same for JAVA
and SQL
below
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.
+1, do we have enum e.g. IdeCategory
or constants represent IDE or get it from IDE env ?
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 don't see this no. All other uses in toolkit seem to use VSCODE
just like this
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.
Looks good to me. Will approve after console.log
statements are replaced with logs
f83e441
to
18b6adb
Compare
QCT wants to support converting embedded SQL in Java apps. Allow users to start a transformation for SQL conversions. --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: David Hasani <[email protected]>
userContext: { | ||
ideCategory: 'VSCODE', | ||
operatingSystem: getOperatingSystem(), | ||
product: 'CodeWhisperer', |
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.
should it be AmazonQ
?
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.
Yep that makes more sense
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.
On second thought, I shouldn't even be manually including this userContext
here — it's already included in the request, so we should simply use that:
userContext: { |
Problem
Need some more metrics emitted to capture lines of code submitted, lines of code changed, and characters of code changed.
Solution
Emit said metrics after parsing them from the download ZIP.
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.