-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support specifying AWS_XRAY_DAEMON_ADDRESS as hostname:port as well as ip:port #19
Comments
Hi @bittercoder , Thank you for the feedback. Can you please let us know your use case. I would take this as a feature request. Best, |
One of the simple ones is if you have x-ray daemon as a side car linked container, I would rather specify the address as "xray-daemon:2000" But more generally I just don't want to have to specify the IP address or deal with having to role containers if the address of the x-ray daemon changes for some reason. So I guess I'm interested in not just having hostname:port work, but ensuring that once resolved the address lookup is only cached for say a minute before being resolved again. These are more reasons for being able to replace the Segment emitter with your own implementation as well - so these implementation details could be something I can manage myself. |
Hi @bittercoder , Thanks for letting us know the use case. We take this as a feature request. Please feel free to submit a pull request, we would be happy to review it. Best, |
I have the same issue here |
I'm working on a PR here https://github.com/emmekappa/aws-xray-sdk-dotnet/tree/hostname_support |
Great to hear your going to work on a improvement for this @emmekappa 👍 I've done something similar to this in the past which may or may not be useful to you:
It's really useful to consider both not permanently caching the resolved address so you don't have to role instances to pick up changes, and caching negative results in case there are problems resolving the hostname which can cause |
@bittercoder I finished and submitted the PR. I'm also handling just IPV4 addresses and the case in which the address could not be resolved, in this case I'll fallback to the default daemon address which seems the be the default fallback. |
@bittercoder you're right about both the DNS resolution caching issue and the DNS blocking issue, I'll try to figure out something. |
This is essential for anyone running Docker on ElasticBeanstalk—or more generally, linked ECS containers.
|
With #38 merged I would propose to close this issue. |
@bittercoder , Thanks, |
Feature request:
Having to specify AWS_XRAY_DAEMON_ADDRESS as ip:port is often no ideal if the IP address is somewhat dynamic - it would be great if hostname:port as also supported.
The text was updated successfully, but these errors were encountered: