Replies: 5 comments
-
Right, so I tried something different. I disabled the demo collector so that traces would be sent directly to the AWS ADOT collector like this: default:
envOverrides:
- name: OTEL_COLLECTOR_NAME
value: otel-collector-xray-collector
opentelemetry-collector:
enabled: false Traces show up on the collector but it complains about the "invalid" trace id (since it doesn't match the format expected by X-RAy:
|
Beta Was this translation helpful? Give feedback.
-
It seems indeed this is confirmed here https://aws-otel.github.io/docs/getting-started/adot-eks-add-on/config-xray
|
Beta Was this translation helpful? Give feedback.
-
I expect the AWS x-ray exporter to handle everything required to get the data into the proper format. How does this exporter work with any other OpenTelemetry instrumented application? |
Beta Was this translation helpful? Give feedback.
-
On Python for instance, you would need to use a specific IDGenerator https://opentelemetry-python-contrib.readthedocs.io/en/latest/sdk-extension/aws/aws.html so traces are properly setup from the get go. |
Beta Was this translation helpful? Give feedback.
-
Ooof. I hoped the x-ray exporter detected this and fixed the traceIds on export, but clearly, it does not. We don't want to start adding x-ray specific things to the demo code to support something that is vendor-specific. Can you raise this issue with the x-ray exporter for the OpenTelemetry collector? I assume someone from Amazon will want to have x-ray work in an OpenTelemetry world without requiring any special code for the instrumentation. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm running the demo in an AWS EKS cluster and I've enabled the AWS ADOT collector.
I have also configured the demo collector to use the ADOT collector as its exporter:
I'm fairly certain traces are sent accordingly to the ADOT collector. But they never reach the X-Ray service. My feeling is that it's because there is no AWS x-ray-id generator enabled on the demo. Thus traces are ignored by AWS.
But short of forking the demo and amending all services to add such generator at the code level, I am not sure if that's actually possible via configuration.
Has anyone been successful with such configuration?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions