Skip to content
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

feat: allow override useragent with json config #65

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

haojhcwa
Copy link
Contributor

@haojhcwa haojhcwa commented Aug 8, 2020

Description of the issue

Currently there is no way to configure the user-agent string used by the agent.

Description of changes

Add a new config 'user_agent' under agent section in json config.
Translator will pass on the user agent value via envconfig, and being
set as environment variable, which agentinfo package would pick up with
higher priority.

License

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

Tests

Added unit tests

Add a new config 'user_agent' under agent section in json config.
Translator will pass on the user agent value via envconfig, and being
set as environment variable, which agentinfo package would pick up with
higher priority.
@yimuniao yimuniao merged commit 1e42bdf into aws:master Aug 10, 2020
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