-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opentelemetry-collector between aws-otel-collector Permanent error: SerializationException #537
Comments
Which version of otel and aws-otel-collector are you using? It seems your pipeline is distributed and only using There might be some internal data format mismatch due to different version of core and contrib repo. Can you try using latest aws-otel-collector, or just use https://github.com/open-telemetry/opentelemetry-collector-contrib (the xray reporter is in the contrib repo, we are just importing it in aws distro). The contrib repo release is always aligned with core collector release while the aws distro may not be up to date. |
Additionally, It looks like the x-ray request generated in
|
aws-otel-collector:v0.10.0 |
We opened Debug and found the following. (no unique labels) We think there is a problem with opentelemetry-collector forward aws-otel-collector. |
w3c traceid format:https://www.w3.org/TR/trace-context/#trace-id xray taceid: https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html#xray-api-traceids It is possible to do this automatically using the AWS Tracing SDK? |
The translator has problem. The lack of |
How was you trace data generated in your service? It looks like your service is not generating the trace data with x-ray format of trace ID and the x-ray exporter failed to process it. X-Ray Exporter only takes the x-ray format of trace id for now. And we had provided xrayidgenerator you can enable it in your service if you're using OTel SDK. Or you can directly use aws-otel-java-instrumentation to send trace data with x-ray traceid. |
The aws-otel-collector does not convert, We have to use the X-Ray SDK? |
This seems to be a duplicate of open-telemetry/opentelemetry-collector#3405 Are you not able to use the aws-otel components to enable the ID generator? It's not recommended to use the X-Ray SDK over those. But the collector cannot do the conversion by itself since IDs are generated and propagated with an app. |
Thank you so much... |
The aws-otel-collector erro:
2021-06-08T08:42:04.597Z error exporterhelper/queued_retry.go:243 Exporting failed. Try enabling retry_on_failure config option. {"kind": "exporter", "name": "awsxray", "error": "Permanent error: SerializationException: \n\tstatus code: 400, request id: bb92b15b-dea5-44c8-bd4a-68deeefd7735"}
Is there some bug between OpenTelemetry and X-Ray?
Our process is as follows:
opentelemetry-collector (DaemonSet run) conf:
opentelemetry-collector (Svc run, Control sampling rate) conf:
aws-otel-collector (Svc run, Send data to x-ray) conf:
The text was updated successfully, but these errors were encountered: