DataDog/datadog-lambda-js

Integration Clarification

uttrasey opened this issue · 1 comments

Expected Behavior

Clearer understanding of the expected integration options

Actual Behavior

There are 2 documented conflicting strategies

Steps to Reproduce the Problem

It appears to me that there are 2 integration patterns:

(1) add datadog-lambda-js as a dependency and wrap the handler in code (as documented in this repo)
(2) add the library via a AWS lambda layer (as documented online website) which means:

  • specifying the datadog library as the handler entry
  • using ENV variables to tell the library where your handler is
  • not including the library as a dependency

Are both of these options valid / will be supported moving forward?

I read the docs properly :)