Skip to content

Conversation

dreamorosi
Copy link
Contributor

@dreamorosi dreamorosi commented Feb 24, 2025

Summary

Changes

Please provide a summary of what's being changed

This PR adds a mechanism to set the AWS_SDK_UA_APP_ID env variable when one is set so that AWS SDK clients include the value when making requests. The env variable is set when importing Powertools and allows us to send our user agent along with requests.

This new mechanism appends a NO-OP user agent, and the PR also implements new logic to add feature-specific user agents only when the NO-OP is not present. The UA attached to requests looks like this app/PT/NO-OP/2.14.0.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: #3650


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this Feb 24, 2025
@dreamorosi dreamorosi requested review from a team as code owners February 24, 2025 15:56
@dreamorosi dreamorosi requested a review from am29d February 24, 2025 15:56
@boring-cyborg boring-cyborg bot added commons This item relates to the Commons Utility tests PRs that add or change tests labels Feb 24, 2025
@pull-request-size pull-request-size bot added the size/M PR between 30-99 LOC label Feb 24, 2025
Copy link
Contributor

@am29d am29d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wunderbar!

Copy link

@dreamorosi dreamorosi merged commit d94d3bf into main Feb 25, 2025
41 checks passed
@dreamorosi dreamorosi deleted the chore/app_sdk_ua branch February 25, 2025 08:26
@dreamorosi dreamorosi linked an issue Feb 25, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commons This item relates to the Commons Utility size/M PR between 30-99 LOC tests PRs that add or change tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: add NO-OP user agent

2 participants