Environment variable | +Default value | +Options | +Description | +
---|---|---|---|
`NEW_RELIC_ACCOUNT_ID` | ++ | + | Your New Relic account ID | +
`NEW_RELIC_TRUSTED_ACCOUNT_KEY` | ++ | + | Your New Relic account ID or parent ID, if it exists | +
Environment variable | +Default value | +Options | +Description | +
---|---|---|---|
`NEW_RELIC_ACCOUNT_ID` | ++ | + | Your New Relic account ID | +
`NEW_RELIC_TRUSTED_ACCOUNT_KEY` | ++ | + | Your New Relic account ID or parent ID, if it exists | +
`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED` | +`false` | +`true`, `false` | +Enable or disable distributed tracing | +
`NEW_RELIC_PRIMARY_APPLICATION_ID` | ++ | + | Your New Relic account ID | +
`NEW_RELIC_DEBUG` | +`false` | +`true`, `false` | +Agent log level | +
Environment variable | +Default value | +Options | +Description | +
---|---|---|---|
`NEW_RELIC_ACCOUNT_ID` | ++ | + | Your New Relic account ID | +
`NEW_RELIC_TRUSTED_ACCOUNT_KEY` | ++ | + | Your New Relic account ID or parent ID, if it exists | +
`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED` | +`false` | +`true`, `false` | +Enable or disable distributed tracing (Java excluded) | +
`NEW_RELIC_NO_CONFIG_FILE` | +`false` | +`true`, `false` | +The Node.js agent uses environment variables in Lambda, so this should be set to `true` | +
`NEW_RELIC_APP_NAME` | ++ | + | Should be set but is not used in the New Relic UI. Instead, entity names come from the AWS integration. | +
`NEW_RELIC_LOG_ENABLED` | +`false` | +`true`,`false` | +Outputs agent logs to CloudWatch | +
`NEW_RELIC_LOG_LEVEL` | +`info` | +`fatal`, `error`, `warn`, `info`, `debug`, `trace` | +Agent log level | +
`NEW_RELIC_LOG` | +`stdout` | +`stdout` | +Agent log path should be stdout for the Node.js agent in serverless mode | +
`NEW_RELIC_USE_ESM` | +`false` | +`true`, `false` | +ESM functions that use async/await and not callbacks | +
`NEW_RELIC_NATIVE_METRICS_ENABLED` | +`true` | +`true`, `false` | +Should be set to false to reduce cold start duration. When set to `false` it does not collect VM metrics | +
Environment variable | +Default value | +Options | +Description | +
---|---|---|---|
`NEW_RELIC_ACCOUNT_ID` | ++ | + | Your New Relic account ID | +
`NEW_RELIC_TRUSTED_ACCOUNT_KEY` | ++ | + | Your New Relic account ID or parent ID, if it exists | +
`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED` | +`false` | +`true`, `false` | +Enable or disable distributed tracing (Java excluded) | +
`NEW_RELIC_NO_CONFIG_FILE` | +`false` | +`true`, `false` | +Agent uses environment variables in Lambda so this should be set to true | +
`NEW_RELIC_APP_NAME` | ++ | + | Should be set but is not used in the New Relic UI. Instead, entity names come from the AWS integration. | +
`NEW_RELIC_LOG` | +`stderr` | +`stderr` | +Agent log path should be `stderr `for the Python agent in serverless mode | +
`NEW_RELIC_LOG_LEVEL` | +`info` | +`critical`, `error`, `warning`, `info`, `debug` | +Agent log level | +
`NEW_RELIC_SERVERLESS_MODE_ENABLED` | +`false` | +`true`, `false` | +This should be set to `true` so the agent will run in serverless mode | +
`NEW_RELIC_PACKAGE_REPORTING_ENABLED` | +`true` | +`true`, `false` | +Python agent package reporting should be set to `false` to improve cold start times | +
Environment variable | +Default value | +Options | +Description | +
---|---|---|---|
`NEW_RELIC_ACCOUNT_ID` | ++ | + | Your New Relic account ID | +
`NEW_RELIC_TRUSTED_ACCOUNT_KEY` | ++ | + | Your New Relic account ID or parent ID, if it exists | +
`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED` | +`false` | +`true`, `false` | +Enable or disable distributed tracing | +
`NEW_RELIC_LAMBDA_HANDLER` | ++ | + | Set to your function's original Handler value | +
Environment variable | +Default value | +Options | +Description | +
---|---|---|---|
`NEW_RELIC_LAMBDA_EXTENSION_ENABLED` | +`true` | +`true`, `false` | +Enable or disable the extension | +
`NEW_RELIC_LICENSE_KEY` | ++ | + | Your New Relic ingest key. This overrides Secrets Manager | +
`NEW_RELIC_LICENSE_KEY_SECRET` | +`NEW_RELIC_LICENSE_KEY` | ++ | Custom secret name in AWS Secrets Manager | +
`NEW_RELIC_LAMBDA_HANDLER` | ++ | + | If you don't use New Relic's [manual wrapping method](https://github.com/newrelic/newrelic-lambda-layers?tab=readme-ov-file#note-on-performance-for-es-module-functions) this is your your function's handler. | +
`NEW_RELIC_DATA_COLLECTION_TIMEOUT` | +10s | ++ | Reduce timeout duration when for `Telemetry client error` | +
`NEW_RELIC_EXTENSION_LOGS_ENABLED` | +`true` | +`true`, `false` | +Enable or disable `NR_EXT` log lines | +
`NEW_RELIC_EXTENSION_LOG_LEVEL` | +`info` | +`info`, `debug` | +log level for NR_EXT log lines | +
`NEW_RELIC_EXTENSION_SEND_FUNCTION_LOGS` | +`false` | +`true`, `false` | +Send function logs | +
`NEW_RELIC_LOG_ENDPOINT` | ++ | + | Set to https://log-api.newrelic.com/log/v | +
`NEW_RELIC_TELEMETRY_ENDPOINT` | +Set to [US endpoint](https://cloud-collector.newrelic.com/aws/lambda/v1) | ++ | Optional [EU endpoint](https://github.com/newrelic/newrelic-lambda-extension/blob/3c4218dd7727d0b0467f24f0902b616b7f4e46b7/telemetry/client.go#L24-L27) | +
Environment variable | -Default value | -Options | -Description | -
---|---|---|---|
`NEW_RELIC_ACCOUNT_ID` | -- | - | Your New Relic account ID | -
`NEW_RELIC_TRUSTED_ACCOUNT_KEY` | -- | - | Your New Relic account ID or parent ID, if it exists | -
`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED` | -`false` | -`true`, `false` | -Enable or disable distributed tracing | -
Environment variable | -Default value | -Options | -Description | -
---|---|---|---|
`NEW_RELIC_NO_CONFIG_FILE` | -`false` | -`true`, `false` | -The Node.js agent uses environment variables in Lambda, so this should be set to `true` | -
`NEW_RELIC_APP_NAME` | -- | - | Should be set but is not used in the New Relic UI. Instead, entity names come from the AWS integration. | -
`NEW_RELIC_LOG_ENABLED` | -`false` | -`true`,`false` | -Outputs agent logs to CloudWatch | -
`NEW_RELIC_LOG_LEVEL` | -`info` | -`fatal`, `error`, `warn`, `info`, `debug`, `trace` | -Agent log level | -
`NEW_RELIC_LOG` | -`stdout` | -`stdout` | -Agent log path should be stdout for the Node.js agent in serverless mode | -
`NEW_RELIC_USE_ESM` | -`false` | -`true`, `false` | -ESM functions that use async/await and not callbacks | -
`NEW_RELIC_NATIVE_METRICS_ENABLED` | -`true` | -`true`, `false` | -Should be set to false to reduce cold start duration. When set to `false` it does not collect VM metrics | -
-Environment variable - | --Default value - | -Options | -Description | -
---|---|---|---|
`NEW_RELIC_NO_CONFIG_FILE` | -`false` | -`true`, `false` | -Agent uses environment variables in Lambda so this should be set to true | -
`NEW_RELIC_APP_NAME` | -- | - | Should be set but is not used in the New Relic UI. Instead, entity names come from the AWS integration. | -
`NEW_RELIC_LOG` | -`stderr` | -`stderr` | -Agent log path should be `stderr `for the Python agent in serverless mode | -
`NEW_RELIC_LOG_LEVEL` | -`info` | -`critical`, `error`, `warning`, `info`, `debug` | -Agent log level | -
`NEW_RELIC_SERVERLESS_MODE_ENABLED` | --`false` - | -`true`, `false` | -This should be set to `true` so the agent will run in serverless mode | -
`NEW_RELIC_PACKAGE_REPORTING_ENABLED` | -`true` | -`true`, `false` | -Python agent package reporting should be set to `false` to improve cold start times | -
Environment variable | -Default value | -Options | -Description | -
---|---|---|---|
`NEW_RELIC_PRIMARY_APPLICATION_ID` | -- | - | Your New Relic account ID | -
`NEW_RELIC_DEBUG` | -`false` | -`true`, `false` | -Agent log level | -
Environment variable | -Default value | -Options | -Description | -
---|---|---|---|
`NEW_RELIC_LAMBDA_EXTENSION_ENABLED` | -`true` | -`true`, `false` | -Enable or disable the extension | -
`NEW_RELIC_LICENSE_KEY` | -- | - | Your New Relic ingest key. This overrides Secrets Manager | -
`NEW_RELIC_LICENSE_KEY_SECRET` | -`NEW_RELIC_LICENSE_KEY` | -- | Custom secret name in AWS Secrets Manager | -
`NEW_RELIC_LAMBDA_HANDLER` | -- | - | If you don't use New Relic's [manual wrapping method](https://github.com/newrelic/newrelic-lambda-layers?tab=readme-ov-file#note-on-performance-for-es-module-functions) this is your your function's handler. | -
`NEW_RELIC_DATA_COLLECTION_TIMEOUT` | -10s | -- | Reduce timeout duration when for `Telemetry client error` | -
`NEW_RELIC_EXTENSION_LOGS_ENABLED` | -`true` | -`true`, `false` | -Enable or disable `NR_EXT` log lines | -
`NEW_RELIC_EXTENSION_LOG_LEVEL` | -`info` | -`info`, `debug` | -log level for NR_EXT log lines | -
`NEW_RELIC_EXTENSION_SEND_FUNCTION_LOGS` | -`false` | -`true`, `false` | -Send function logs | -