Disable new relic agent by default

It can be enable as needed by setting NEW_RELIC_AGENT_ENABLED env
variable to true and setting a license key
This commit is contained in:
Gaetan Craig-Riou
2023-07-31 10:46:23 +10:00
committed by Gaetan Craig-Riou
parent de52ff4abf
commit 0103942dcb
2 changed files with 5 additions and 4 deletions

2
.env
View File

@@ -62,6 +62,8 @@ SMTP_PASSWORD="f00d"
# STRIPE_CLIENT_ID="ca_xxxx" # This can be a development ID or a production ID
# STRIPE_ENDPOINT_SECRET="whsec_xxxx"
# New relic settings
# see: https://one.eu.newrelic.com/admin-portal/, Administration > API keys to get the license key
# NEW_RELIC_AGENT_ENABLED=true
# NEW_RELIC_APP_NAME="Open Food Network"
# NEW_RELIC_LICENSE_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

View File

@@ -11,7 +11,7 @@
common: &default_settings
# Required license key associated with your New Relic account.
# Use NEW_RELIC_APP_NAME env variable to specify the license key
# Use NEW_RELIC_LICENSE_KEY env variable to specify the license key
# Your application name. Renaming here affects where data displays in New
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
@@ -22,8 +22,8 @@ common: &default_settings
enabled: true
# To disable the agent regardless of other settings, uncomment the following:
# agent_enabled: false
# Agent is disabled by default, to enable set NEW_RELIC_AGENT_ENABLE env variable to true
agent_enabled: false
# Logging level for log/newrelic_agent.log
log_level: info
@@ -52,7 +52,6 @@ common: &default_settings
development:
<<: *default_settings
app_name: 'Open Food Network (Development)'
monitor_mode: false
test:
<<: *default_settings