Skip to content

Conversation

@ctlai95
Copy link
Contributor

@ctlai95 ctlai95 commented Mar 4, 2025

Problem

Some users are reporting S3 upload failures but we don't have the requestIds to investigate further.

Solution

Emit amazonq_createUpload metric with requestIds


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

github-actions bot commented Mar 4, 2025

  • 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.

Comment on lines +222 to +223
...(!this.state.requestId ? { requestId: getRequestId(err) } : {}),
...(!this.state.httpStatusCode ? { httpStatusCode: getHttpStatusCode(err) } : {}),
Copy link
Contributor Author

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.

@ctlai95 ctlai95 marked this pull request as ready for review March 4, 2025 21:36
@ctlai95 ctlai95 requested review from a team as code owners March 4, 2025 21:36
"type": "string",
"description": "The intent of the upload",
"allowedValues": [
"TRANSFORMATION",
Copy link
Contributor

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.

Copy link
Contributor

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

@ctlai95 ctlai95 enabled auto-merge (squash) March 5, 2025 03:34
@ctlai95 ctlai95 merged commit a69638f into aws:master Mar 5, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants