-
Notifications
You must be signed in to change notification settings - Fork 57
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
SDK failed to fetch X-Ray tcp address #25
Comments
And we try to two version sdks.
and we also try to use the github master branch
|
Update:
then will give me an exception like this:
Is this a bug? |
Update:
will be not called, it's mean the sampler will not update the daemon_config for poller.connector.
So the poller will still use the deafult daemon address 127.0.0.1. On the other hand. When I just specify daemon_address.
Second time when the daemon_address=(v) be called.
So I think that casue the Exception. |
Now I specify both AWS_XRAY_DAEMON_ADDRESS and daemon_address. Then every thing is OK. |
Hi @z-zhenbin, thank you for contacting us and sorry for the late response. There are two addresses used by daemon. The first one is an udp address which daemon listens on to receive segments generated by X-Ray SDK. The second one is a tcp address which daemon fetches the centralized sampling rules from X-Ray backend. By default, both udp and tcp are using |
@luluzhao Thank you for your response. I tested that use the tcp:127.0.0.1:2000 udp:127.0.0.2:2001 for AWS_XRAY_DAEMON_ADDRESS, but it still have an exception. So like what I said I think that when I just use the AWS_XRAY_DAEMON_ADDRESS, I don't find the source code to update the tcp address for default_sampler. |
@z-zhenbin . We have a bug fix which we haven't release it yet. Could you check the X-Ray ruby version you are using? If it is |
I'm getting this warning as well when using
|
It sounds like you need to use master to get the fix. In your Gemfile, add: gem 'aws-xray-sdk-ruby', github: 'aws/aws-xray-sdk-ruby' |
Hi @joesiewert , I'll be happy to take a look into the issue. |
This bug appears still to be present in 0.11.4. Setting
I must also ensure Running ruby:2.6.6, aws-xray-sdk:0.11.4. |
I never experienced this issue before while running Ruby 2.5.3 and Rails 6.0.3 with x-ray 0.11.5. |
Versions here are: We are successfully working around by setting
|
We have a rails application and run in docker.
There is our docker-compose file content.
Now, we can see the trace information at aws x-ray console. but the sdk always output warn log like this:
and this
Why SDK try to fetch x-ray sampling rule, but use the default address 127.0.0.1:2000? I have pass the x-ray daemon address by AWS_XRAY_DAEMON_ADDRESS, and the SDK also success to send trace information.
The text was updated successfully, but these errors were encountered: