I understand that you are currently unable to get any X-Ray tracs when integrating AWS XRay SDK for Nodejs in a ECS task.
Firstly, AWS X-Ray is Application Performance Monitoring tool that can be used to trace transactions for application. Please note, AWS X-Ray supports tracing for applications that are written in Node.js , Java, and .NET.
To forward traces to X-Ray API, you will need the X-Ray Daemon inside your ECS task. Here  is the complete documentation to achieve this. The task can be configured using "bridge" or "awsvpc" network mode, both approaches explained on the aforementioned doc.
Secondly, if you are unable to get any traces, then you want to first check the X-Ray daemon logs (The daemon sends a telemetry data per minute.) from the Cloudwatch LogStream to check for any errors that maybe occurring.
There can be errors such as -
- X-Ray instrumentation/configuration error such as not providing service name.
- Trace Size Exceeded - which can mean that the application is attempting to send too many segments for a particular trace at a time.
Additionally you can also check with our service team on Github at , who are actively monitoring this Repo, to report for any X-Ray daemon issues or feature requests.
Thirdly, if the suggestions above do not help resolve the issue, this will need troubleshooting based on your configurations. Could you please create a support case with our premium support team who can then check the details on your resource configurations?
Please do not post any sensitive information over re:Post since this is a public platform.
As always, feel free to reach back with any further questions or concerns in the meantime!
AWS Credentials not passed in ecs task with dynamodb nodejsAccepted Answerasked 10 months ago
X-ray Daemon in ECS Cluster not sending tracesasked a month ago
how to save a file while running an etl job in a fargate task?asked 4 months ago
Unable to override taskRoleArn when running ECS task from Lambdaasked 7 months ago
Long running event processingAccepted Answerasked a month ago
Where are ECS Task logs being stored and for how long?Accepted Answerasked 3 months ago
Asynchronous tracing using Xrayasked 3 years ago
aws xray not working with long running ecs taskasked 4 months ago
ECS Task Groupsasked 4 years ago