Method: NewRelic::Agent::LogEventAttributes#add_custom_attributes

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

#add_custom_attributes(attributes) ⇒ Object

[View source]

12
13
14
15
16
17
18
19
20
# File 'lib/new_relic/agent/log_event_attributes.rb', line 12

def add_custom_attributes(attributes)
  return if defined?(@custom_attribute_limit_reached) && @custom_attribute_limit_reached

  attributes.each do |key, value|
    next if absent?(key) || absent?(value)

    add_custom_attribute(key, value)
  end
end