Method: NewRelic::Agent::Configuration::Manager#remove_duplicates
- Defined in:
- lib/new_relic/agent/configuration/manager.rb
permalink #remove_duplicates(pairs) ⇒ Object
We only take the last value provided for a given label type key
371 372 373 374 |
# File 'lib/new_relic/agent/configuration/manager.rb', line 371 def remove_duplicates(pairs) grouped_by_type = pairs.group_by(&:first) grouped_by_type.values.map(&:last) end |