Module: Datadog::AppSec::Contrib::ActiveRecord::Instrumentation::InternalExecQueryAdapterPatch

Defined in:
lib/datadog/appsec/contrib/active_record/instrumentation.rb

Overview

patch for all adapters in ActiveRecord >= 7.1

Instance Method Summary collapse

Instance Method Details

#internal_exec_query(sql, *args, **rest) ⇒ Object



44
45
46
47
48
# File 'lib/datadog/appsec/contrib/active_record/instrumentation.rb', line 44

def internal_exec_query(sql, *args, **rest)
  Instrumentation.detect_sql_injection(sql, adapter_name)

  super
end