Skip to content
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

Failure to instrument lambda with nodejs22.x runtime #1536

Open
yaniv-alamaru opened this issue Feb 13, 2025 · 1 comment
Open

Failure to instrument lambda with nodejs22.x runtime #1536

yaniv-alamaru opened this issue Feb 13, 2025 · 1 comment
Labels
bug Something isn't working serverless Related to [cloud-run, lambda, stepfunctions]

Comments

@yaniv-alamaru
Copy link

yaniv-alamaru commented Feb 13, 2025

Bug description

Running datadog-ci to instrument a lambda function that uses runtime nodejs22.x fails.

Error message:
🐶 Instrumenting Lambda function
(node:66644) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

[Warning] The version tag has not been configured. Learn more about Datadog unified service tagging: https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging/#serverless-environment.

[Warning] Couldn't add source code integration, continuing without it. Error: Couldn't get local git status.
✖ [ap-southeast-2] Failed fetching Lambda configurations.

[Error] Couldn't fetch Lambda functions. Error: Can't instrument arn:aws:lambda:ap-southeast-2:account-id-redacted:function:jobs-worker, runtime nodejs22.x not supported

Describe what you expected

🐶 Instrumenting Lambda function
(node:7) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

[Warning] The version tag has not been configured. Learn more about Datadog unified service tagging: https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging/#serverless-environment.

[Warning] Couldn't add source code integration, continuing without it. Error: Couldn't get local git status.
✔ [ap-southeast-2] Fetched 1 Lambda configurations.
 
 
[Warning] Instrument your Lambda functions in a dev or staging environment first. Should the instrumentation result be unsatisfactory, run uninstrument with the same arguments to revert the changes.

[!] Functions to be updated:

  • arn:aws:lambda:ap-southeast-2:account-id-redacted:function:jobs-worker

Steps to reproduce the issue

datadog-ci lambda instrument --function jobs-worker --region ap-southeast-2 --service jobs-worker --env development -e 118 -e 68

Additional context

No response

Command

lambda

@yaniv-alamaru yaniv-alamaru added the bug Something isn't working label Feb 13, 2025
@github-actions github-actions bot added the serverless Related to [cloud-run, lambda, stepfunctions] label Feb 13, 2025
@TalUsvyatsky
Copy link

Thanks for your report @yaniv-alamaru, we're taking a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working serverless Related to [cloud-run, lambda, stepfunctions]
Projects
None yet
Development

No branches or pull requests

2 participants