

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# AWS Distro for OpenTelemetry 和 AWS X-Ray
<a name="xray-services-adot"></a>

使用 AWS Distro for OpenTelemetry (ADOT) 收集指標和追蹤，並將其傳送至 AWS X-Ray 和其他監控解決方案，例如 Amazon CloudWatch、Amazon OpenSearch Service 和 Amazon Managed Service for Prometheus。

## AWS Distro for OpenTelemetry
<a name="xray-services-adot-intro"></a>

 AWS Distro for OpenTelemetry (ADOT) 是基於雲端原生運算基金會 (CNCF) OpenTelemetry 專案的 AWS 分佈。OpenTelemetry 提供一組開放原始碼 APIs、程式庫和代理程式，以收集分散式追蹤和指標。此工具組是上游 OpenTelemetry 元件的分佈，包括 SDKs、自動檢測代理程式和 測試、最佳化、保護和支援的收集器 AWS。

透過 ADOT，工程師可以一次檢測其應用程式，並將相關指標和追蹤傳送至多個 AWS 監控解決方案 AWS X-Ray，包括 Amazon CloudWatch、Amazon OpenSearch Service 和 Amazon Managed Service for Prometheus。

ADOT 與越來越多的 整合 AWS 服務 ，可簡化傳送追蹤和指標以監控解決方案，例如 X-Ray。與 ADOT 整合的一些服務範例包括：
+ *AWS Lambda* – 適用於 ADOT 的 AWS 受管 Lambda 層透過自動檢測 Lambda 函數、將 OpenTelemetry 與 AWS Lambda 和 X-Ray out-of-the-box組態封裝在易於設定的層中，提供plug-and-play使用者體驗。使用者可以為其 Lambda 函數啟用和停用 OpenTelemetry，而無需變更程式碼。如需詳細資訊，請參閱 [AWS Distro for OpenTelemetry Lambda](https://aws-otel.github.io/docs/getting-started/lambda) 
+ *Amazon Elastic Container Service (ECS)* – 使用 AWS Distro for OpenTelemetry Collector 從 Amazon ECS 應用程式收集指標和追蹤，以傳送至 X-Ray 和其他監控解決方案。如需詳細資訊，請參閱《Amazon ECS 開發人員指南》中的[收集應用程式追蹤資料](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/trace-data.html)。
+ *AWS App Runner* – App Runner 支援使用 AWS Distro for OpenTelemetry (ADOT) 將追蹤傳送至 X-Ray。使用 ADOT SDKs來收集容器化應用程式的追蹤資料，並使用 X-Ray 來分析並深入了解經檢測的應用程式。如需詳細資訊，請參閱 [AWS App Runner 和 X-Ray](xray-services-app-runner.md)。

如需 AWS Distro for OpenTelemetry 的詳細資訊，包括與其他 的整合 AWS 服務，請參閱 [AWS Distro for OpenTelemetry 文件](https://aws-otel.github.io/docs/introduction)。

如需使用 AWS Distro for OpenTelemetry 和 X-Ray 檢測應用程式的詳細資訊，請參閱[使用 AWS Distro for OpenTelemetry 檢測應用程式](xray-instrumenting-your-app.md#xray-instrumenting-opentel)。