-
Notifications
You must be signed in to change notification settings - Fork 898
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
Incoming spring-boot SQS message handler not using trace id from AWSTraceHeader #4788
Comments
I experience similar situation. My I created relatively small application to replicate this: https://github.com/tmarszal/opentelemetry-java-instrumentation-issue-4478-demo TL;DR what I think is missing here is auto-instrumentation around SimpleMessageListenerContainer#executeMessage. When I start mock SQS (with elasticmq), my test app and send GET request to it (to trigger SQS message creation), I get following spans:
My observations:
|
Hi, I'm facing the same exact issue when using opentelemetry-aws-sdk-1.11 together with org.springframework.cloud:spring-cloud-sleuth-otel-autoconfigure:1.1.3. Will this issue be tackled in the near future? |
I'm having the same issue using opentelemetry auto instrumentation together with @SqsListener annotation. It generates different traceIds for ReceiveMessage and Sqs handler method. There are some db calls inside the handler method and tracing backend can't correlate these db calls with receiveMessage span. Any idea how to resolve it? |
maybe related? #8331 |
I think this is probably caused by the fact that the |
Describe the bug
Auto instrumentation not taking trace id from AWSTraceHeader attribute when recieving SQS message.
Steps to reproduce
Spring
@SqsListener
method with or without@WithSpan
annotation when processing incoming SQS message.What did you expect to see?
I expect the span that executes the SQS handler to have the trace id from the AWSTraceHeader attribute of the SQS message.
What did you see instead?
SQS message handled within a new span with a new trace id, not related to the AWSTraceHeader.
What version are you using?
v1.7.2
Environment
Compiler: OpenJDK 1.8.0_252
OS: Debian buster
Runtime (if different from JDK above): OpenJDK build 1.8.0_312-b07
OS (if different from OS compiled on): Debian buster
Additional context
Running a spring-boot application in ECS task. Not even sure if this is supposed to work since documentation is sparse, but from looking at the sources here, it kinda looks like there is code in place to handle it, so filing as a bug report.
The text was updated successfully, but these errors were encountered: