-
Notifications
You must be signed in to change notification settings - Fork 753
telemetry(amazonq): createUpload metric for scans #6715
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
|
| ...(!this.state.requestId ? { requestId: getRequestId(err) } : {}), | ||
| ...(!this.state.httpStatusCode ? { httpStatusCode: getHttpStatusCode(err) } : {}), |
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.
Making this change to allow requestId and httpStatusCode to be set explicitly before the stop method is invoked. Otherwise it will silently get removed if err is not the correct format.
| "type": "string", | ||
| "description": "The intent of the upload", | ||
| "allowedValues": [ | ||
| "TRANSFORMATION", |
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.
nit: Can you add TEST_GENERATION as allowed value, if not I can add this as part of next PR's or while shipping this to common package.
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.
NVM, I will make change for UTG.
Thanks @ctlai95
Problem
Some users are reporting S3 upload failures but we don't have the requestIds to investigate further.
Solution
Emit
amazonq_createUploadmetric with requestIdsfeature/xbranches will not be squash-merged at release time.