0

API Gateway --> Custom Authorizer(Lambda) --> NLB --> Fargate Task

Above is the request flow of my application, I have enabled X-Ray in API Gateway stage and redeployed the API.

However, in the X-Ray trace map diagram, I see only API Gateway and NLB.

Trace maps is like this, API Gateway --> NLB.

  1. What should I do to get the tracing of Custom Authorizer?
  2. What should I do to get the tracing of NLB --> Fargate?
John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
karthikeayan
  • 4,291
  • 7
  • 37
  • 75

1 Answers1

0

In the Lambda console for your Custom Authorizer function, you should be able to check "Enable X-Ray Active Tracing" & add appropriate permissions to see the Lambda node: https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html

To trace the Fargate task, include the X-Ray daemon in your task definition (docs) and you will have to instrument your code with the X-Ray SDK. The X-Ray SDK is available in 6 languages and you can see documentation for getting started with them in the sidebar here: https://docs.aws.amazon.com/xray/latest/devguide/xray-gettingstarted.html

William Armiros
  • 267
  • 1
  • 10