Instrument with ECMAScript Modules (ESM)

Note: By default, the Node.js Serverless Tracer automatically discovers exit calls passed over HTTP or inter-AWS Lambda calls. You need to create an exit call if your function does not use these protocols. See Node.js Serverless Tracer API.
  1. In the Layers section, add the Splunk AppDynamics layer.
    Give it the name appdynamics-lambda-extension, and the Version ARN value as shown below:
    arn:aws:lambda:us-west-<###>:layer:appdynamics-lambda-nodejs-<###>
  2. In the Runtime settings section, update the lambda handler to the Splunk AppDynamics specific handler, appdynamics-lambda-nodejs-tracer.handler:
    appdynamics-lambda-nodejs-tracer.handler
  3. In the Configuration section, add the following environment variables to the other Splunk AppDynamics variables.
    • APPDYNAMICS_APPLICATION_LAMBDA_HANDLER = Lambda handler

    • APPDYNAMICS_IS_ESM_ENABLE = true