Override the Tracer's Default Behavior

If you prefer to customize the function/business transaction names or keep the tracer settings in your source code, override the environment variables to retrieve values at runtime from any desired source.

The following code snippet demonstrates how to override the default behavior of the tracer:

tracer.init({
controllerHostName: 'controllerHost',
controllerPort: 8080,
accountAccessKey: 'controllerAccountAccessKey',
accountName: 'controllerAccountName',
applicationName: 'applicationName',
tierName: 'tierName',
serverlessApiEndpoint: 'serverlessApiEndpoint',
proxyHost: 'proxyHost',
proxyPort: '80',
proxyUser: 'proxyUser',
proxyPassword: 'proxyPassword',
certificateFile: 'proxyCertFile',
debug: true
});