elastic / elastic/apm-agent-nodejs

AWS Lambda support does not work with `nodejs24.x` Lambda runtime

Open
#4,972 2 comments 1 reaction 1 assignee Claimed by @trentm View on GitHub
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

In Nov 2025, AWS released the `nodejs24.x` Lambda runtime: https://aws.amazon.com/blogs/compute/node-js-24-runtime-now-available-in-aws-lambda/

The Elastic Node.js APM agent support for Lambda does *not* work with this runtime.
A symptom of the failure will be the "Dropping lambda data due to error: metadata is not yet available" message in your Lambda logs, e.g.:

```
{"log.level":"warn","@timestamp":"2026-02-18T01:01:40.646Z","log.origin":{"function":"github.com/elastic/apm-aws-lambda/apmproxy.(*Client).ForwardLambdaData","file.name":"apmproxy/apmserver.go","file.line":364},"message":"Dropping lambda data due to error: metadata is not yet available","ecs.version":"1.6.0"}
```

The **workaround for now is to stay with the `nodejs22.x` Lambda runtime**.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.