-
Notifications
You must be signed in to change notification settings - Fork 38
add node24 as supported runtime #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
astuyve
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should bump the version of dd-trace-js in our package.json/package-lock.json, likely it's a major version bump to add support for 24.x but you should ask that team
| NODE_VERSIONS_FOR_AWS_CLI=("nodejs18.x" "nodejs20.x" "nodejs22.x") | ||
| LAYER_PATHS=(".layers/datadog_lambda_node18.12.zip" ".layers/datadog_lambda_node20.19.zip" ".layers/datadog_lambda_node22.11.zip") | ||
| AVAILABLE_LAYERS=("Datadog-Node18-x" "Datadog-Node20-x" "Datadog-Node22-x") | ||
| NODE_VERSIONS_FOR_AWS_CLI=("nodejs18.x" "nodejs20.x" "nodejs22.x" "nodejs24.x") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This looks great. Just a heads up that at one point we had an incident where I did not append the new layer version to all of these variables which caused an off-by-one error and an incompatible layer to be published. This is because we iterate through these lists pair/touple-wise and expect them to be exactly the same length.
Some assertions would help save us, but let's also just carefully check this is correct everywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some validation in all the relevant scripts. lmk if that fits what you were thinking.
| * If a version cannot be identified, returns null | ||
| * See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html | ||
| */ | ||
| export function getRuntimeTag(): string | null { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could probably refactor this a bit
| [](https://github.com/DataDog/datadog-lambda-js/blob/main/LICENSE) | ||
|
|
||
| Datadog Lambda Library for Node.js (18.x, 20.x, and 22.x) enables enhanced Lambda metrics, distributed tracing, and custom metric submission from AWS Lambda functions. | ||
| Datadog Lambda Library for Node.js (18.x, 20.x, 22.x, and 24.x) enables enhanced Lambda metrics, distributed tracing, and custom metric submission from AWS Lambda functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: deprecate v18.x because it's been deprecated by lambda since september
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I do that here or maybe split into a different PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
different PR is fine
@astuyve I bumped to 5.80.0 for now but do yk which team I should be asking? I did run all the unit/integration tests and they pass |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
|
What does this PR do?
adds node 24.11 as a supported runtime
Motivation
APMSVLS-162
Testing Guidelines
Additional Notes
Types of Changes
Check all that apply