Skip to content

Deprecation warnings logging errors on Node 22 Lambda startup #673

@kayeight

Description

@kayeight

Expected Behavior

  • Invoking a Node 22 Lambda function with the Datadog layer active does not produce any errors on startup

Actual Behavior

When using the Lambda extension for Datadog, this library is logging several errors related to deprecated methods:
[DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.

I see that datadog-ci was already upgraded to update the form-data dependency and remove this error: DataDog/datadog-ci#1700

Not sure if there is another dependency that is still using an outdated version of form-data or a different library that calls util.isArray.

Steps to Reproduce the Problem

  1. Deploy a Lambda function using the Node 22 version of the Datadog extension
  2. Make a request to the Lambda
  3. See the above error in the logs during startup of the Lambda layer

Specifications

  • Datadog Lambda Layer version: 124
  • Datadog extension version: 76
  • Node version: 22.9.0

Stacktrace

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions