Skip to content

feat: add sdk name/version to user agent header#344

Open
nvasiu wants to merge 1 commit intomainfrom
add-user-agent-header
Open

feat: add sdk name/version to user agent header#344
nvasiu wants to merge 1 commit intomainfrom
add-user-agent-header

Conversation

@nvasiu
Copy link
Copy Markdown

@nvasiu nvasiu commented Apr 14, 2026

Issue #, if available:

#300

Description of changes:

  • Added a user_agent_extra field to the default LambdaClient config, to pass the SDK name/version into UserAgent headers.
    • user_agent_extra is appended to the existing UserAgent header value (reference).
  • Updated LambdaClient initialization tests to verify user_agent_extra.

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

config=Config(
connect_timeout=5,
read_timeout=50,
user_agent_extra=f"aws-durable-execution-sdk-python/{__version__}",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@nvasiu nvasiu force-pushed the add-user-agent-header branch from 592facc to 0f5e32a Compare April 15, 2026 00:08
config=Config(
connect_timeout=5,
read_timeout=50,
user_agent_extra=f"@aws/durable-execution-sdk-python/{__version__}",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hmm, strictly speaking the package name is aws-durable-execution-sdk-python

java's maven package is:

aws-durable-execution-sdk-java

but it uses "@aws/durable-execution-sdk-java/" for user agent str.

ts/js npm package is:

@aws/durable-execution-sdk-js

it uses the same for user agent str.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes, might as well standardize on @aws/durable-execution-sdk-python

Copy link
Copy Markdown
Contributor

@yaythomas yaythomas left a comment

Choose a reason for hiding this comment

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

please update commit to follow commit rules from contributing.md

- Add user_agent_extra field to the default Lambda client config,
  which appends the SDK name and version to the user agent header
- Update tests to verify the new user_agent_extra field

Include SDK name and version in the Lambda client's user agent header
to provide better visibility for debugging.
@nvasiu nvasiu force-pushed the add-user-agent-header branch from 0f5e32a to 0dc9706 Compare April 15, 2026 19:00
@nvasiu nvasiu changed the title Update: Default LambdaClient includes SDK name/version in UserAgent string feat: add sdk name/version to user agent header Apr 15, 2026
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.

2 participants