diff options
Diffstat (limited to 'src/metrics/newrelic/agent.py')
-rw-r--r-- | src/metrics/newrelic/agent.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/metrics/newrelic/agent.py b/src/metrics/newrelic/agent.py index 86ac388..f78023a 100644 --- a/src/metrics/newrelic/agent.py +++ b/src/metrics/newrelic/agent.py @@ -71,6 +71,13 @@ def configuration_settings(app_name=None, license_key=None, license_key = os.environ.get('NEW_RELIC_LICENSE_KEY', None) license_key = option('license_key', default=license_key) + else: + if app_name is None: + app_name = os.environ.get('NEW_RELIC_APP_NAME', None) + + if license_key is None: + license_key = os.environ.get('NEW_RELIC_LICENSE_KEY', None) + if app_name is not None: app_name = app_name.split(';')[0].strip() |