Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link a Textract async operation with downstream process #397

Open
Erry91 opened this issue Aug 1, 2023 · 1 comment
Open

Link a Textract async operation with downstream process #397

Erry91 opened this issue Aug 1, 2023 · 1 comment
Labels

Comments

@Erry91
Copy link

Erry91 commented Aug 1, 2023

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?

@wangzlei
Copy link
Contributor

wangzlei commented Aug 6, 2023

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
Labels
Projects
None yet
Development

No branches or pull requests

3 participants