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

Detect address from env before resolving it #189

Closed
wants to merge 3 commits into from
Closed

Detect address from env before resolving it #189

wants to merge 3 commits into from

Conversation

hoshsadiq
Copy link

@hoshsadiq hoshsadiq commented Mar 12, 2021

Seems the address is resolved from the environment after it is determined that we're not using unix socket/windows pipe. In our case, the application passes in an empty address, as we're relying on the client to determine the address from the environment. However, if DD_AGENT_HOST is set and prefixed with unix:// or \\.\pipe\, it won't have detected this and will eventually just falls back to UDPWriter (in this case, it also always adds the default port). This should fix that by retrieving the address from the environment before that logic kicks in.

Edit: Not really sure how to test windows. I don't have a windows machine.

@hush-hush hush-hush self-requested a review March 30, 2021 15:10
@hush-hush hush-hush self-assigned this Mar 30, 2021
@hush-hush
Copy link
Member

Thanks a lot for the PR @hoshsadiq. I opened #192 to answer the issue and re-organize the code and tests.

@hush-hush
Copy link
Member

This has been fixed in v4.5.1. Thanks again for bringing it up.

@hush-hush hush-hush closed this Mar 31, 2021
@hoshsadiq
Copy link
Author

Thanks @hush-hush, will test it out before the end of the week!

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