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

AHC: fill user agent #3930

Merged
merged 6 commits into from
Aug 26, 2021
Merged

AHC: fill user agent #3930

merged 6 commits into from
Aug 26, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Aug 24, 2021

Resolves #2347
Adds filling userAgent, requestContentLength and responseContentLength.

@Override
String userAgent() {
return "AHC"
}
Copy link
Member

Choose a reason for hiding this comment

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

no test changes for request/response content length?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Completely forgot about these. Added verification for response content length. Didn't add verification for request content length because our tests don't have requests with body so this header is never set.

@trask trask merged commit 3fb936b into open-telemetry:main Aug 26, 2021
@laurit laurit deleted the ahc-user-agent branch July 6, 2023 17:45
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.

AsyncHttpClient integration loose user agent
4 participants