Skip to content

Commit

Permalink
Disable Metrics/AbcSize for event recording
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Oct 26, 2022
1 parent 4c373e4 commit 1c0c6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/appsec/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def self.record(*events)
end
end

def self.record_via_span(*events)
def self.record_via_span(*events) # rubocop:disable Metrics/AbcSize
events.group_by { |e| e[:trace] }.each do |trace, event_group|
unless trace
Datadog.logger.debug { "{ error: 'no trace: cannot record', event_group: #{event_group.inspect}}" }
Expand Down

0 comments on commit 1c0c6ab

Please sign in to comment.