Skip to content

Commit

Permalink
Merge pull request #2160 from newrelic/no_mr_bond_i_expect_you_to_die
Browse files Browse the repository at this point in the history
LogEventAttributes: instance var check
  • Loading branch information
fallwith authored Aug 11, 2023
2 parents b719d12 + b8864fc commit 34e8948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/agent/log_event_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LogEventAttributes
ATTRIBUTE_VALUE_CHARACTER_LIMIT = 4094

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

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

0 comments on commit 34e8948

Please sign in to comment.