First of all AWS X-Ray is not a full APM tool , it provides data on distributed traces for applications running in AWS. X-Ray provides distributed tracing for developers, so they can analyze performance and availability of their services and applications running on AWS EC2, AWS Container Service or AWS Beanstalk.
Read moreIs AWS X-Ray serverless?
Enables AWS X-Ray (https://aws.amazon.com/xray/) for the entire Serverless stack or individual functions .
Read moreHow do I enable X-Ray on AWS?
To configure X-Ray integration on an AWS Lambda function
Read more