By using AWS re:Post, you agree to the Terms of Use
/AWS X-Ray with Spring Cloud Sleuth/

AWS X-Ray with Spring Cloud Sleuth


I'm trying to use Spring Cloud Sleuth with AWS X-Ray. When I am testing my API locally I can see the X-Amzn-Trace-Id header being picked up correctly by Spring Cloud Sleuth and being attached to my logs correctly.

The issue is I cannot see any requests being sent from my application to the xray-daemon which is running as a container locally.

Has anyone successfully got this working with the latest versions of spring cloud sleuth and zipkin-reporter-xray-udp to forward the requests to the xray-daemon? I have only been able to find guides/resources from 2019 but these are no longer relevant. I have configured the following bean and using spring-cloud-starter-sleuth 3.1.3 and zipkin-reporter-xray-udp 0.23.4.

Reporter<Span> myReporter() { 
    return XRayUDPReporter.create(); 

I am running the X-Ray daemon using the following command

docker run -d -v ~/.aws/:/root/.aws/:ro -e AWS_REGION=us-west-2 --name xray-daemon -p 2000:2000/udp -o
1 Answers
Accepted Answer

After coming back to this and adding spring-cloud-sleuth-zipkin 3.1.3 as a dependency I can see the records being forwarded to the xray-daemon

answered 24 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions