Skip to content

Link a Textract async operation with downstream process #397

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?

Activity

  1. wangzlei commented on Aug 6, 2023

    @wangzlei
    Contributor

    Thanks for reaching X-Ray. we are working a feature "custom defined links" which can be used in creating a process segment handling a batch of upstream traces. The underlying data model please refer to

    We don't have exact timeline for this feature. To be noticed this feature only apply for ADOT(AWS Distro for OpenTelemetry Java), not support xray SDK. Please see https://docs.aws.amazon.com/xray/latest/devguide/xray-java.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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