Method: NewRelic::Agent::Attributes#merge_untrusted_agent_attributes

Defined in:
lib/new_relic/agent/attributes.rb

#merge_untrusted_agent_attributes(attributes, prefix, default_destinations) ⇒ Object

[View source]

49
50
51
52
53
54
55
56
# File 'lib/new_relic/agent/attributes.rb', line 49

def merge_untrusted_agent_attributes(attributes, prefix, default_destinations)
  return if @filter.high_security?
  return if !@filter.might_allow_prefix?(prefix)

  AttributeProcessing.flatten_and_coerce(attributes, prefix) do |k, v|
    add_agent_attribute_with_key_check(k, v, AttributeFilter::DST_NONE)
  end
end