

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Amazon Distro for OpenTelemetry JavaScript
<a name="xray-js-opentel-sdk"></a>

借助 Amazon Distro for OpenTelemetry (ADOT) JavaScript，工程师只需对应用程序进行一次检测，即可将相关的指标和跟踪发送到多个 Amazon 监控解决方案，包括 Amazon CloudWatch、Amazon X-Ray 和 Amazon OpenSearch Service。将 X-Ray 与适用于 OpenTelemetry 的 Amazon Distro 配合使用需要两个组件：使其能够与 X-Ray 一起使用的 *OpenTelemetry 开发工具包*以及能够与 X-Ray 一起使用的*适用于 OpenTelemetry 的 Amazon Distro 收集器*。

请参阅 [Amazon Distro for OpenTelemetry JavaScript 文档](https://aws-otel.github.io/docs/getting-started/javascript-sdk)，了解入门知识。

**注意**  
所有服务器端 Node.js 应用程序都支持 ADOT JavaScript。ADOT JavaScript 无法从浏览器客户端将数据导出到 X-Ray。

有关如何将适用于 OpenTelemetry 的 Amazon Distro 与 Amazon X-Ray 和其他 Amazon Web Services 服务 一起使用的更多信息，请参阅 [适用于 OpenTelemetry 的 Amazon Distro](https://aws-otel.github.io/) 或 [适用于 OpenTelemetry 的 Amazon Distro 文档](https://aws-otel.github.io/docs/introduction)。

有关语言支持和使用情况的其他信息，请参阅 [Github 上的 Amazon 观察](https://github.com/aws-observability)。