Capture Traces from AWS Lambda to Step Function to Lambda

Viewed 188

I am experimenting with Lambdas and I am having a hard time passing traces from a Lambda to a Step Function which has a lambda within it.

So structure looks something like this:

Lambda Code call step function -> Step function -> Lambda.

Problem is that I am getting two different traces, instead of the desired one trace, which effectively captures lambda -> step function -> lambda all under one trace id.

1st trace - Lambda A 2nd trace - Step Function -> Lambda B

Is this possible to unify the traces, so it looks like this?

Trace 3 - Lambda A -> Step Function -> Lambda B (TraceId: 1) ~ Something like that

And if so how would I go about doing that.

Thanks

1 Answers
Related