Deploy the Amazon Distro for OpenTelemetry (ADOT) Collector for X-Ray
You can deploy the Amazon Distro for OpenTelemetry (ADOT) Collector to send traces to X-Ray by applying a YAML configuration file. This procedure downloads an example YAML file that you can apply to your cluster.
-
Download the
collector-config-xray.yaml
file to your computer. You can also view the fileon GitHub. curl -O https://raw.githubusercontent.com/aws-observability/aws-otel-community/master/sample-configs/operator/collector-config-xray.yaml
-
In
collector-config-xray.yaml
, replace the following with your own values:-
mode:
(for more information, see the ADOT Collector installation instructionsdeployment
on GitHub) -
serviceAccount:
adot-collector
-
region: "
"<YOUR_AWS_REGION>
-
-
Apply the YAML file to your cluster to deploy the ADOT Collector:
kubectl apply -f collector-config-xray.yaml
-
(Optional) Verify trace data is being sent to X-Ray by opening the X-Ray console
and select Traces
from the left menu. Your trace data should be present.