Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
11-13-2020 08:07 AM - last edited on 11-13-2020 03:35 PM by Ryan.Paredez
We have the following code in our application:
import awsServerlessExpress from 'aws-serverless-express';
import tracer from 'appdynamics-lambda-tracer';
tracer.init(...);
...
handler = (event, context, callback) => {
awsServerlessExpress.proxy(server, event, context);
};
tracer.mainModule(module);
It seems we cannot provide the `mainModule` function the CommonJS `module` object because this doesn't exist in an ES 6 environment (at least as the `mainModule` expects it in a CommonJS runtime environment).
Our question: How do we implement the Serverless tracer in an ES 6 module environment? Are there any code samples to help us?
Thanks!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form