Skip to content

How to propagate trace from SQS to Lambda? #351

@andreas-trvlk

Description

@andreas-trvlk

For context, I have a Lambda function that processes message from a SQS. We want to enhance the X-Ray tracing as the trace info doesn't get propagated from SQS to Lambda. I have been following this https://docs.aws.amazon.com/xray/latest/devguide/xray-services-sqs.html and even implemented the same exact code. But, I got exception similar to #19

FacadeSegments cannot be mutated.: java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException: FacadeSegments cannot be mutated.
	at com.amazonaws.xray.entities.FacadeSegment.setTraceId(FacadeSegment.java:311)

How to properly propagate trace information from SQS to Lambda?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions