-
Notifications
You must be signed in to change notification settings - Fork 986
Description
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.