fix bugs that doesnt count develop and review and cli used count. #8090
+347
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Disabled features (Development, Review, CLI)
Review function
There are tests in packages/amazonq/test/e2e/amazonq/review.test.ts, but I can't find the telemetry transmission code
There is a lack of implementation that sends execution results of the /review command to the dashboard
Development features
No specific “development” telemetry event is defined
There is a lack of dedicated telemetry to track development-related activities
CLI functionality
Can't find SAM CLI related telemetry
There is a CLI implementation in packages/core/src/shared/sam/cli/, but the mechanism to send usage status to the dashboard is insufficient
solutions
To be reflected in the dashboard, the following additional telemetry events must be implemented:
Review features: /review command execution, results, scan completion event
Development features: code generation, project creation, development activity tracking
CLI features: SAM CLI execution, deployment, and build command usage
The current Chat and Inline Code are tracked in detail with dedicated telemetry helpers, so they are correctly reflected on the dashboard.
Solution
I've implemented the following additional telemetry events:
Review function
AmazonQ_ReviewStart - Review Begins
AmazonQ_reviewComplete - Review completed (including number of questions)
AmazonQ_ReviewError - review error
AmazonQ_reviewFixApplied - fix applied
Development features
AmazonQ_codeGeneration - code generation
AmazonQ_ProjectCreation - Project Creation
AmazonQ_developmentActivity - development activity
amazonQ_featureUsage - feature usage
CLI functionality
amazonq_samcommand - execute SAM command
AmazonQ_saminit - SAM Initialization
AmazonQ_samdeploy - SAM deployment
AmazonQ_samLocalInvoke - SAM Local Execution
These telemetry events will allow the dashboard to reflect the results of Development, Review, and CLI runs. Detailed metrics such as usage, success rate, and execution time for each feature are collected and visualized in the Activity Dashboard.
feature/x
branches will not be squash-merged at release time.