Skip to content

Add feature usage tracking to the User-Agent header - #883

Closed
ubaskota wants to merge 3 commits into
developfrom
user_agent_metrics_scaffold
Closed

ubaskota wants to merge 3 commits into
developfrom
user_agent_metrics_scaffold

Conversation

@ubaskota

@ubaskota ubaskota commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Issue #, if available:

Note: This pr will be closed. Original pr: #882

Description of changes:
Add a way to record which SDK features a call uses and report them in the User-Agent header's m/ section. Features are tracked per call with register_feature_id and the AwsFeatureId enum, and the AWS user agent interceptor appends them to the header after signing, without adding them twice on retries. This PR tracks features for retry mode and the
endpoint override.

Testing:
Added unit tests for registration, encoding and the header update, including retries, and integration tests with a generated client. Verified that all existing and new tests pass.

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

@ubaskota

ubaskota commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

closing this pr. original pr: #882

@ubaskota ubaskota closed this Nov 3, 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