aws / aws/aws-xray-sdk-python

Link a Textract async operation with downstream process

Offen
#397 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
Python
Sterne
338
Forks
147
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der Durchsicht der Tracing-APIs des AWS X-Ray SDK for Python sowie der in diesem Issue beschriebenen Integrationspunkte von Step Functions, Textract, SQS und Lambda. Ermittle, ob das SDK das manuelle Verknüpfen dieser Abläufe zu einem Trace oder zu verknüpften Traces unterstützt, und dokumentiere das unterstützte Ergebnis oder die Einschränkung.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, python
Bereich
observability-sre
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.