Added possibility to add new relic app name

This commit is contained in:
Priit Tark 2015-05-19 16:08:27 +03:00
parent 4ef50d97b5
commit 66b00b7a77
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
19.05.2015
* Added possibility to define NewRelic app_name at application.yml file with 'new_relic_app_name' attribute.
18.05.2015 18.05.2015
* Added Registrant database example file: config/database-example-registrant.yml * Added Registrant database example file: config/database-example-registrant.yml

View file

@ -5,6 +5,10 @@ zonefile_export_dir: 'export/zonefiles'
bank_statement_import_dir: 'import/bank_statements' bank_statement_import_dir: 'import/bank_statements'
legal_documents_dir: 'import/legal_documents' legal_documents_dir: 'import/legal_documents'
# New Relic app name, keep only current mode, remove other names.
# Example: 'Admin, EPP, REPP' will have name 'Admin, EPP, REPP - production' at New Relic.
new_relic_app_name: 'Admin, EPP, REPP, Registrar, Registrant'
# You can use `rake secret` to generate a secure secret key. # You can use `rake secret` to generate a secure secret key.
# Your secret key is used for verifying the integrity of signed cookies. # Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid! # If you change this key, all old signed cookies will become invalid!

View file

@ -0,0 +1 @@
NewRelic::Agent.config[:app_name] = "#{ENV['new_relic_app_name']} - #{Rails.env}" if ENV['new_relic_app_name'].present?