Skip to content

Maintenance: append user agent to AWS SDK clients #1274

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

Closed
1 of 2 tasks
jeromevdl opened this issue Jul 9, 2023 · 2 comments
Closed
1 of 2 tasks

Maintenance: append user agent to AWS SDK clients #1274

jeromevdl opened this issue Jul 9, 2023 · 2 comments
Assignees
Labels
maintenance priority:2 High - core feature or affects 60% of the users

Comments

@jeromevdl
Copy link
Contributor

Summary

The AWS SDK v2 allows to add user agent headers to the requests made using its clients.

Why is this needed?

So that AWS can attribute requests made to its API when using Powertools.

Which area does this relate to?

Governance

Solution

Expose a shared function (in core module) that takes a client and adds Powertools-related user agents to the request. This shared function can then be used by other Powertools utilities that make requests to AWS APIs. Check SDK documentation and typescript implementation (and usage).

Impacted modules:

  • tracing (X-ray)
  • parameters (SSM Parameters, Secrets Manager, DynamoDB, AppConfig)
  • idempotency (DynamoDB)
  • sqs (SQS)

Acknowledgment

@eldimi
Copy link
Contributor

eldimi commented Jul 10, 2023

I will have a look into this

@scottgerring
Copy link
Contributor

Thanks @eldimi - I'll assign it to you then so we can keep an overview of what's going on :D

@jeromevdl jeromevdl added the priority:2 High - core feature or affects 60% of the users label Jul 17, 2023
@jeromevdl jeromevdl moved this from Backlog to Working on it in Powertools for AWS Lambda (Java) Jul 17, 2023
@scottgerring scottgerring removed the good-first-issue Good for newcomers label Aug 2, 2023
@scottgerring scottgerring moved this from Working on it to Coming soon in Powertools for AWS Lambda (Java) Aug 17, 2023
@jeromevdl jeromevdl moved this from Coming soon to Shipped in Powertools for AWS Lambda (Java) Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance priority:2 High - core feature or affects 60% of the users
Projects
Status: Shipped
Development

No branches or pull requests

3 participants