Instrumentation Based on Choice of Javascript Modules
To complete the instrumentation, follow these steps based on your choice of Java Script modules.
- ECMAScript Modules (ESM)
-
- In the appdynamics-lambda-extension Layers section, add theCisco AppDynamics layer. Give it the name Version ARNvalue as shown below:
arn:aws:lambda:us-west-<###>:layer:appdynamics-lambda-nodejs-<###>
- In the appdynamics-lambda-nodejs-tracer.handler Runtime settings section, update the lambda handler to the Splunk AppDynamics specific handler,
appdynamics-lambda-nodejs-tracer.handler
- In the Configuration section, add the following environment variables to the other Splunk AppDynamics variables.
-
APPDYNAMICS_APPLICATION_LAMBDA_HANDLER
-
APPDYNAMICS_IS_ESM_ENABLE true
-
- In the appdynamics-lambda-extension Layers section, add theCisco AppDynamics layer. Give it the name Version ARNvalue as shown below:
- CommonJS
-
- In the appdynamics-lambda-extension Layers section, add the Splunk AppDynamics layer. Give it the name Version ARN value as shown below:
arn:aws:lambda:us-west-<###>:layer:appdynamics-lambda-nodejs-<###>
- In the appdynamics-lambda-nodejs-tracer.handler Runtime settings section, update the lambda handler to Splunk AppDynamics specific handler,
appdynamics-lambda-nodejs-tracer.handler
- In the Configuration section, add the following environment variables to the other Splunk AppDynamics variables.
-
APPDYNAMICS_APPLICATION_LAMBDA_HANDLER
-
APPDYNAMICS_IS_ESM_ENABLE false
-
- In the appdynamics-lambda-extension Layers section, add the Splunk AppDynamics layer. Give it the name Version ARN value as shown below:
- TypeScript
-
- In the appdynamics-lambda-extension Layers section, add theCisco AppDynamics layer. Give it the name Version ARN value as shown below.
arn:aws:lambda:us-west-<###>:layer:appdynamics-lambda-nodejs-<###>
- In the appdynamics-lambda-nodejs-tracer.handler Runtime settings section, update the lambda handler to Splunk AppDynamics specific handler,
appdynamics-lambda-nodejs-tracer.handler
- In the Configuration section, add the following environment variables to the other Splunk AppDynamics variables.
-
APPDYNAMICS_APPLICATION_LAMBDA_HANDLER
-
APPDYNAMICS_IS_ESM_ENABLE false true
-
- In the appdynamics-lambda-extension Layers section, add theCisco AppDynamics layer. Give it the name Version ARN value as shown below.