aws / aws/aws-xray-sdk-python

Link a Textract async operation with downstream process

オープン
#397 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
Python
スター
338
フォーク
147
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず AWS X-Ray SDK for Python の tracing API と、issue で説明されている Step Functions、Textract、SQS、Lambda の統合ポイントを確認します。SDK がこれらのフローを 1 つのトレースまたはリンクされたトレースに手動で関連付けることをサポートしているかどうかを判断し、サポートされる結果または制限事項を文書化します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
observability-sre
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。