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

use host header to fill undertow http tags #4439

Merged
merged 1 commit into from
Dec 16, 2022
Merged

Conversation

amarziali
Copy link
Collaborator

What Does This Do

Fix the way undertow instrumentation is filling http related tag. Host and port are today taken from the socket that has been bound. This differs the way we do on other instrumentations (like tomcat).

The correct thing should be to take what has been put in the host header of the request (like tomcat is doing).

Tested with spring boot and undertow (calling a host alias my.local.address):

Today:

image

With this fix:

image

Motivation

Additional Notes

@amarziali amarziali requested a review from a team as a code owner December 16, 2022 16:06
@amarziali amarziali merged commit 6d2d461 into master Dec 16, 2022
@amarziali amarziali deleted the andrea.marziali/overtow branch December 16, 2022 19:00
@github-actions github-actions bot added this to the 1.3.0 milestone Dec 16, 2022
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.

3 participants