Instrument your application with Node.js
There are two ways to instrument your Node.js application to send traces to X-Ray:
-
Amazon Distro for OpenTelemetry JavaScript – An Amazon distribution that provides a set of open source libraries for sending correlated metrics and traces to multiple Amazon monitoring solutions, including Amazon CloudWatch, Amazon X-Ray, and Amazon OpenSearch Service, via the Amazon Distro for OpenTelemetry Collector
. -
Amazon 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 Amazon Distro for OpenTelemetry and X-Ray SDKs.