Method: NewRelic::Agent::Configuration::Manager#to_collector_hash

Defined in:
lib/new_relic/agent/configuration/manager.rb

#to_collector_hashObject

[View source]

265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/new_relic/agent/configuration/manager.rb', line 265

def to_collector_hash
  DottedHash.new(apply_mask(flattened)).to_hash.delete_if do |k, _v|
    default = DEFAULTS[k]
    if default
      default[:exclude_from_reported_settings]
    else
      # In our tests, we add totally bogus configs, because testing.
      # In those cases, there will be no default. So we'll just let
      # them through.
      false
    end
  end
end