Module: Instana::Instrumentation::Sequel
- Defined in:
- lib/instana/instrumentation/sequel.rb
Constant Summary collapse
- IGNORED_SQL =
%w[BEGIN COMMIT SET PRAGMA].freeze
- VERSION_SELECT_STATEMENT =
"SELECT VERSION()".freeze
- SANITIZE_REGEXP =
/('[\s\S][^']*'|\d*\.\d+|\d+|NULL)/i
Instance Method Summary collapse
Instance Method Details
#log_connection_yield(sql, conn, *args) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/instana/instrumentation/sequel.rb', line 10 def log_connection_yield(sql, conn, *args) call_payload = { sequel: { adapter: opts[:adapter], host: opts[:host], username: opts[:user], db: opts[:database], sql: maybe_sanitize(sql) } } maybe_trace(call_payload) { super(sql, conn, *args) } end |