-
Notifications
You must be signed in to change notification settings - Fork 33
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
Support for AWS X-Ray #146
Comments
Managed to get it working but had to copy some code to override one of the beans: I had to copy this function in my project and add the IdGenerator https://github.com/spring-projects-experimental/spring-cloud-sleuth-otel/blob/main/spring-cloud-sleuth-otel-autoconfigure/src/main/java/org/springframework/cloud/sleuth/autoconfig/otel/OtelAutoConfiguration.java#L91
Added this dependency to the project
|
Support was there but for the deprecated AWS XRay text maps. It's enough for you to pass the propagation type to be AWS. You can read more about this here https://docs.spring.io/spring-cloud-sleuth/docs/current/reference/html/howto.html#how-to-change-context-propagation. With this commit 4fc825b we're adding support for the contrib class from the |
It seems, that the bug is still out there. We used the version 1.1.1 which should fix it, but we run in the same problem as @sibethencourt. We used his workaround to overwirte the bean with the correct AwsXrayIdGenerator which also worked in our case. We followed your comment @marcingrzejszczak and just pass the propagation type via the application.properties as the documentation describes it but nothing came through x-ray. Is there more to be configured to generate the correct aws ids? |
Have you added the |
Yes, I added However, I don't know why besides AWS the other propagators were found/added, but aws is there however the traces not coming through.
|
Can you actually try to put a debugger to the |
So it looks that the |
Hi, I try to take over today for my colleague as he is ill today.
But also with no effect. Can you elaborate on how to configure the AwsXrayPropagator? |
Is your feature request related to a problem? Please describe.
X-Ray has its own collector implementation that requires a specific format for traceIds. Because of this, the otlp exporter is not able to transfer traces to X-Ray. This is the log error:
It is related to this bug: open-telemetry/opentelemetry-collector-contrib#2396
Describe the solution you'd like
Provide a way to define a custom traceId generator, AWS already offers one: AwsXrayIdGenerator
I need support for custom Id generators: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#id-generators should allow us to fix the issue.
Describe alternatives you've considered
I tried to look up the code and see if I can find a way to override the Id generators, but I haven't been able to do it so far. Right now the alternatives are either replacing X-Ray or not using sleuth-otel.
Additional context
More context here: open-telemetry/opentelemetry-collector-contrib#1646
Because the error I received and the comments in other forums it seems very clear what is the issue, but I haven't been able to confirm it yet, since I haven't found a way to workaround the problem.
The text was updated successfully, but these errors were encountered: