aws-otel-lambda icon indicating copy to clipboard operation
aws-otel-lambda copied to clipboard

NodeJS wrapper warns that callback-based function handlers will be unsupported in Node 24

Open blimmer opened this issue 4 months ago • 2 comments

I started seeing these warnings when using the OTEL layer:

AWS Lambda plans to remove support for callback-based function handlers starting with Node.js 24. You will need to update this function to use an async handler to use Node.js 24 or later. For more information and to provide feedback on this change, see https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/137. To disable this warning, set the AWS_LAMBDA_NODEJS_DISABLE_CALLBACK_WARNING environment variable.

I'm using layer arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-nodejs-arm64-ver-1-30-1:1. If I remove the layer, the message does not appear.

blimmer avatar Aug 22 '25 21:08 blimmer