1

I tried enabling AWS X-Ray in Lambda@Edge, Origin Response handler

I see that X-Ray does not trace it.

Can someone tell me if that will work?

Let me know if someone faced the same and what are the workarounds.

Edit: Interesting read https://kevinhakanson.com/2020-01-20-using-aws-x-ray-with-lambdaedge

Yves M.
  • 29,855
  • 23
  • 108
  • 144
PCB
  • 638
  • 1
  • 11
  • 22
  • 1
    What is the issue that you are experiencing? We natively support AWS API Gateway and AWS Lambda as is, so it'd be interesting to know how we can help you solve the problem you are having. Are you experiencing no traces being generated at all? – Chan Chiem Jeffery Saeteurn Dec 20 '19 at 18:39
  • @ChanChiemJefferySaeteurn Thank you here is my problem I am not able to see the call from Gateway to Authorizer in X-Ray & I have a Lambda in Origin Response which is also not being shown as Invoked in the Flow – PCB Dec 22 '19 at 04:47
  • @Purna Are you saying the Lambda functions are failing and you are not seeing their traces because they failed? Or are the functions succeeding and you're just not seeing their traces? Also to be sure, you have authored the Lambda functions for the API Gateway authorizer and the response handler, and have checked the "active tracing" boxes in the Lambda console for both such functions, right? – William Armiros Dec 26 '19 at 19:50
  • I mean to say X Ray does not show the Lambdas executed at CloudFront Origin response – PCB Dec 27 '19 at 04:01

1 Answers1

1

Lambda@Edge does not support X-Ray, per the documentation: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-requirements-limits.html#lambda-requirements-lambda-function-configuration

psema4
  • 3,007
  • 1
  • 17
  • 22
  • 2
    interestingly it works in origin request but does not work in origin response – PCB Jan 19 '20 at 03:15
  • That certainly is interesting. Are you using an X-Ray daemon? – psema4 Jan 29 '20 at 19:28
  • 1
    Also.. my Lambda@Edge is invoking a "classic" Lambda function that has X-Ray enabled.. and even the "classic" Lambda function doesn't appears in X-Ray.. – Yves M. Oct 23 '20 at 14:10