What address do I send X-Ray traces to in Lambda container?

0

https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html#services-xray-daemon says

The AWS X-Ray daemon is an application that runs in the Lambda environment and listens for UDP traffic that contains segments and subsegments.

What address does this daemon listen on that I can send (UDP) traces to when using Lambda with a container image? 127.0.0.1:2000 doesn't go anywhere presumably because it's just the container itself.

G
asked 4 months ago255 views
1 Answer
0

The X-Ray deamon collection happens automatically in the background, provided that you have enabled for the specific lambda, you do not need to send traces to it.

Enabling active tracing with the Lambda API: https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html#services-xray-api

Further information is available here: https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html

The AWS X-Ray daemon is a software application that listens for traffic on UDP port 2000, gathers raw segment data, and relays it to the AWS X-Ray API. The daemon works in conjunction with the AWS X-Ray SDKs and must be running so that data sent by the SDKs can reach the X-Ray service. The X-Ray daemon is an open source project. You can follow the project and submit issues and pull requests on GitHub: github.com/aws/aws-xray-daemon

On AWS Lambda and AWS Elastic Beanstalk, use those services' integration with X-Ray to run the daemon. Lambda runs the daemon automatically any time a function is invoked for a sampled request. On Elastic Beanstalk, use the XRayEnabled configuration option to run the daemon on the instances in your environment. For more information, see

profile pictureAWS
EXPERT
iBehr
answered 4 months ago
  • Unfortunately I don't see how this answers the question. Only the first sentence is your own content. That ‘collection happens automatically’ requires the X-Ray SDK producing traces, which need to be sent. The rest (missing quote formatting) says the daemon ‘listens for traffic on UDP port 2000’ which is already in the question: 127.0.0.1:2000 appears to not leave the container & not reach the X-Ray daemon run outside the container. The question is specifically about Lambda with container image, as without a container image 127.0.0.1:2000 would reach the Lambda daemon AWS starts on our behalf.

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