module NewRelic::Agent::Configuration

Constants

AUTOSTART_DENYLISTED_RAKE_TASKS
DEFAULTS

rubocop:disable Metrics/CollectionLiteralLength

MASK_DEFAULTS

Public Class Methods

deprecated_description(new_setting, description) click to toggle source

Marks the config option as deprecated in the documentation once generated. Does not appear in logs.

# File lib/new_relic/agent/configuration/default_source.rb, line 26
def self.deprecated_description(new_setting, description)
  link_ref = new_setting.to_s.tr('.', '-')
  %{Please see: [#{new_setting}](##{link_ref}). \n\n#{description}}
end
instrumentation_value_from_boolean(key) click to toggle source
# File lib/new_relic/agent/configuration/default_source.rb, line 18
def self.instrumentation_value_from_boolean(key)
  proc do
    NewRelic::Agent.config[key] ? 'auto' : 'disabled'
  end
end
value_of(key) click to toggle source

Helper since default Procs are evaluated in the context of this module

# File lib/new_relic/agent/configuration/default_source.rb, line 12
def self.value_of(key)
  proc do
    NewRelic::Agent.config[key]
  end
end