New Relic Elixir Agent v1.4.0 NewRelic.Config View Source
New Relic Agent Configuration
All configuration items can be set via ENV variable or via Application config
Link to this section Summary
Functions
Configure your application name. May contain up to 3 names seperated by ;
. Required
An optional list of key/value pairs that will be automatic custom attributes on all event types reported (Transactions, etc)
Some Agent features can be controlled via configuration
Configure the host to report to. Most customers have no need to set this
Configure your New Relic License Key. Required
Configure the Agent logging mechanism. Defaults to "tmp/new_relic.log"
Link to this section Functions
Configure your application name. May contain up to 3 names seperated by ;
. Required
An optional list of key/value pairs that will be automatic custom attributes on all event types reported (Transactions, etc)
Options:
{:system, "ENV_NAME"}
Read a System ENV variable{module, function, args}
Call a function. Warning: Be very careful, this will get called a lot!"foo"
A direct value
Example:
config :new_relic_agent,
automatic_attributes: [
environment: {:system, "APP_ENV"},
node_name: {Node, :self, []},
team_name: "Afterlife"
]
Some Agent features can be controlled via configuration
:error_collector_enabled
(defaulttrue
)
Configure the host to report to. Most customers have no need to set this.
Configure your New Relic License Key. Required
Configure the Agent logging mechanism. Defaults to "tmp/new_relic.log"
Options:
"stdout"
"Logger"
Elixir’s Logger"memory"
(Useful for testing)"file_name.log"