There are two ways to instrument your Node.js application to send traces to X-Ray:
-
AWS Distro for OpenTelemetry JavaScript – An AWS distribution that provides a set of open source libraries for sending correlated metrics and traces to multiple AWS monitoring solutions, including Amazon CloudWatch, AWS X-Ray, and Amazon OpenSearch Service, via the AWS Distro for OpenTelemetry Collector
. -
AWS X-Ray SDK for Node.js – A set of libraries for generating and sending traces to X-Ray via the X-Ray daemon.
For more information, see Choosing between the AWS Distro for OpenTelemetry and X-Ray SDKs.