Instrumenting your application with Java
There are two ways to instrument your Java application to send traces to X-Ray:
-
Amazon Distro for OpenTelemetry Java – 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 Java – 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.