-
Notifications
You must be signed in to change notification settings - Fork 858
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
Trace id for sqs messages is not propagated #12267
Comments
Since camel provides its own open telemetry integration you should seek assistance from the camel community. If you are able to reproduce this without using camel then please provide a minimal application that reproduces the issue along with any necessary instructions. |
@laurit, thanks for the reply about camel. |
When using java agent you don't need to include opentelemetry-aws-sdk-2.2-autoconfigure.
Please provide minimal application that reproduces the issue along with any instructions necessary. |
@laurit, here is an example https://github.com/aarrsseni/demo-sqs-opentelemetry/tree/master/src/main. |
@aarrsseni your configuration https://github.com/aarrsseni/demo-sqs-opentelemetry/blob/73a79bbcb059f70ee244fc551d8b2ef642c20eeb/src/main/resources/application.yml#L9 sets endpoint to |
@laurit, yes, this is LocalStack in the example but I have the same configuration in the real env without LocalStack. Maybe you have an example of working solution to check the config or some more detailed documentation? |
This will require instrumentation for |
@laurit I have a similar use case as aarrsseni. Tried using the latest javaagent 2.9 with the following configuration but I see that the trace id is not propagated and I'm not able to see the consumer span under the same trace: JDK: openjdk:18-jdk-alpine3.15 Are the changes in 2.9 javaagent version applicable only for spring boot version>=3? |
I believe so |
Describe the bug
I have service which is publishing sqs message to the queue and also is reading the message from this queue.
It's using javaagent and have opentelemetry-aws-sdk-2.2-autoconfigure dependency.
Parameters described here https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/aws-sdk/README.md are enabled as well.
I see that trace id is not propagated and there is no trace and span id at all after message consuming.
Steps to reproduce
Spring service publishes simple sqs message to the queue using spring-cloud-aws-sqs SqsTemplate. Consume the message using @SqsListener from spring-cloud-aws-sqs. Check the trace id before and after sending.
Expected behavior
Trace id and span id should be propagated and shouldn't be lost.
Actual behavior
Trace id and span id are lost after sending sqs message.
Javaagent or library instrumentation version
2.5.0
Environment
JDK: Temurin 17.0.7
OS: Alpine Linux
Spring: 6.1.10
opentelemetry-aws-sdk-2.2-autoconfigure: 2.7.0-alpha
spring-cloud-aws-sqs: 3.1.1
Additional context
No response
The text was updated successfully, but these errors were encountered: