Method: NewRelic::Agent::Configuration::Manager#apply_transformations
- Defined in:
- lib/new_relic/agent/configuration/manager.rb
permalink #apply_transformations(key, value) ⇒ Object
151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/new_relic/agent/configuration/manager.rb', line 151 def apply_transformations(key, value) if transform = transform_from_default(key) begin transform.call(value) rescue => e NewRelic::Agent.logger.error("Error applying transformation for #{key}, pre-transform value was: #{value}.", e) raise e end else value end end |