Open pacey opened 7 years ago
Have there been any updates around adding this feature or found any workarounds?
Sadly not, I couldn't see a quick or obvious way around it.
@adriancole or @marcingrzejszczak any comment?
right now folks sometimes use zipkin-aws which includes instrumentation and an xray exporter. I think sqs might be in a different package tho cc @devinsba @llinder
If you are already using spring cloud, you are probably better off using spring-cloud-sleuth with the components Adrian mentioned. Though a disclaimer is in order here: the XRay reporter does not have feature parity with the native XRay client, we are always open to PRs to help improve support.
On SQS, if you want to trace across your queues then you will want to pull in the smartthings-brave
SQS instrumentation component.
X-Ray traces can now be passed through SQS. I think the SQSListener must be extended to support this and set the tracing context. See the AWS Tutorial.
Would it be possible to document the integration options with X-Ray, if it is even possible?
At the moment an application fails to start because the various AWS clients cannot obtain the segment context.
I think the problem is down to the SQS client running in a separate thread pool (which is totally necessary). The Amazon X-Ray code doesn't really seem to handle this at all.