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

Fix armeria latestDepTest #8247

Merged

Conversation

mateuszrzeszutek
Copy link
Member

Armeria 1.23 released a couple hours ago, and it looks like they changed a couple of things around the HttpRequest & RequestHeaders implementations.

I removed the usage of HttpRequest#uri() from the getters cause it threw IllegalStateException when one of the URI components was null. Instead, we're building the URI by hand now (which is pretty much the same thing Armeria does internally, sans the nullchecks).

I also changed the way Armeria client is called in the tests -- while the previous version probably works, it generates totally wrong telemetry (I've no idea why it even works in the first place...). RequestHeaders#path() expects just the path, not the full URI, and is unable to reconstruct the URI because it thinks that scheme and authority haven't been provided.

@mateuszrzeszutek mateuszrzeszutek requested a review from a team as a code owner April 7, 2023 13:22
@trask trask enabled auto-merge (squash) April 7, 2023 13:40
@trask trask merged commit 69ee671 into open-telemetry:main Apr 7, 2023
@mateuszrzeszutek mateuszrzeszutek deleted the fix-armeria-latest-dep-test branch April 7, 2023 13:50
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.

None yet

2 participants