Link a Textract async operation with downstream process
- Dominant language
- Python
- Stars
- 338
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
I have a simple setup with one Lambda function that starts a Textract analysis of a document via StepFunctions.
The textract task in the StepFunction definition sends a notification on an SQS which triggers another lambda. I have little to no control on what message is sent in the SQS by textract since it's a predefined aws task.
Everything is patched with Xray and what it's seen from console is essentially this:
(client) -> LambdaA -> StepFunction -> Textract
(client) -> LambdaB (this one has been triggered by the SQS message)
However I was wondering if it is possible at all to link the two flows in Xray and see them as one trace_id or linked traces.
Can two traces be linked manually with the SDK?
Contributor guide
Assessment
This issue has not been assessed yet.