Closed darin-holloway closed 2 years ago
after seeing that 0.5.0 had been released, I upgraded to it and deployed my app again and didn't see this behavior.
Might have spoke too soon, now seeing this behavior re-appear
behavior was also observed with a nodejs 16 application
I believe the macro automatically update the handler and DD_LAMBDA_HANDLER env var. So steps 2 & 3 in your reproduction steps are unnecessary. Could that be the cause of the issue?
https://docs.datadoghq.com/serverless/installation/python?tab=awssam has the step by step instructions in case it's helpful.
@tianchu thank you, going to test with DD_LAMBDA_HANDLER unset to confirm if the transform does to job for us
Confirmed working correctly now, thanks for the tip
Expected Behavior
DD_LAMBDA_HANDLER value matches what is in our template.yaml
Actual Behavior
DD_LAMBDA_HANDLER is set to datadog_lambda.handler.handler, causing the lambda to not run due to a cyclical dependency
Steps to Reproduce the Problem
Specifications
For the Datadog Serverless Macro:
Stacktrace