Skip to main content

Elastic APM Configuration

Environment variables related to Elastic APM monitoring agent.

NameDescriptionRequiredType
ELASTIC_APM_SERVICE_NAME
Override service name from package.json.
false
string
ELASTIC_APM_SECRET_TOKEN
Use if APM Server requires a token.
false
string
ELASTIC_APM_API_KEY
Use if APM Server uses API keys for authentication.
false
string
ELASTIC_APM_SERVER_URL
Custom APM Server URL.
true
string
Default:http://localhost:8200
ELASTIC_APM_ACTIVATE
Set 'true' value to enable APM agent.
true
boolean
Default:false
ELASTIC_APM_DISABLE_INSTRUMENTATIONS
Comma-separated list of modules to be excluded from instrumentation.
false
string
ELASTIC_APM_ENVIRONMENT
Override environment value.
false
string
ELASTIC_APM_VERIFY_SERVER_CERT
Set to 'false' to disable SSL certificate verification for the APM server.
false
boolean
ELASTIC_APM_LOG_LEVEL
Verbosity level for agent logging.
Options: trace, debug, info, warning, error, critical, off
false
enum
Default:info
ELASTIC_APM_CAPTURE_BODY
Enable capturing the HTTP body of incoming HTTP requests.
Options: off, all, errors, transactions
false
enum
Default:off
ELASTIC_APM_CAPTURE_ERROR_LOG_STACK_TRACES
Capture APM error log stack traces.
Options: never, messages, always
true
enum
ELASTIC_APM_USE_PATH_AS_TRANSACTION_NAME
Use the URL path as the transaction name if no route is found.
false
boolean
Default:false
ELASTIC_APM_ASYNC_HOOKS
Set this option to true to enable async hooks.
true
boolean