How do you set clientName in Apache5HttpClient? #6810
Unanswered
patrickjamesbarry
asked this question in
Q&A
Replies: 2 comments
-
|
It's not an oversight, all client names are hardcoded - see the values in the Apache5, AwsCrt, Netty HTTP client code. The client names are used in places like request user-agents and SDK client-side metrics, they are intentionally hardcoded so we know what values to expect. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks for clarification. It would be helpful to note on docs that this is not modifiable and set internally by sdk. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Apache5HttpClient class mentions the clientName in https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache5/Apache5HttpClient.html however there is no way to set it. I can see how this would be beneficial if you have multiple clients, to help distinguish between them.
Not exposed on builder: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache5/Apache5HttpClient.Builder.html
What is the intention of this and what is it set to? Was this an oversight by not letting a user set it?
Beta Was this translation helpful? Give feedback.
All reactions