lib/new_relic/agent/attributes.rb in newrelic_rpm-6.8.0.360 vs lib/new_relic/agent/attributes.rb in newrelic_rpm-6.9.0.363

- old
+ new

@@ -9,12 +9,10 @@ class Attributes KEY_LIMIT = 255 VALUE_LIMIT = 255 COUNT_LIMIT = 64 - EMPTY_HASH = {}.freeze - def initialize(filter) @filter = filter @custom_attributes = {} @agent_attributes = {} @@ -74,11 +72,11 @@ def intrinsic_attributes_for(destination) if destination == NewRelic::Agent::AttributeFilter::DST_TRANSACTION_TRACER || destination == NewRelic::Agent::AttributeFilter::DST_ERROR_COLLECTOR @intrinsic_attributes else - EMPTY_HASH + NewRelic::EMPTY_HASH end end private @@ -118,10 +116,10 @@ attributes[key] = value end def for_destination(attributes, calculated_destinations, destination) # Avoid allocating anything if there are no attrs at all - return EMPTY_HASH if attributes.empty? + return NewRelic::EMPTY_HASH if attributes.empty? attributes.inject({}) do |memo, (key, value)| if @filter.allows?(calculated_destinations[key], destination) memo[key] = value end