Skip to content

Bug: tracer unable to create service map Lambda -> SQS -> Lambda #286

@flochaz

Description

@flochaz

Description of the feature request

Problem statement

SQS currently don't propagate properly traces when chaining Lambda. See aws/aws-xray-sdk-node#208 for more details.

Summary of the feature

  1. Implement a mechanism to detect when event coming from SQS and contains XRay trace id.
  2. Rebuild segments to be part of the main trace

Code examples

I did a first implem here : https://github.com/flochaz/x-ray-lambda-sqs-lambda/blob/main/lib/lambda/consumer-function/index.js

Benefits for you and the wider AWS community

The issue on xray sdk has been open for 2 years, people are getting really frustrated, 84 👍 and tens of comments ....

Describe alternatives you've considered

Wait for service team to fix it :)

Metadata

Metadata

Assignees

Labels

blockedThis item's progress is blocked by external dependency or reasonbug-upstreamThis item is related to a bug caused by upstream dependencytracerThis item relates to the Tracer Utility

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions