Skip to content

Link a Textract async operation with downstream process #397

Open
@Erry91

Description

@Erry91

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions