Class: Appsignal::EventFormatter::Sequel::SqlFormatter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/event_formatter/sequel/sql_formatter.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Compatibility with the sequel-rails gem. The sequel-rails gem adds its own ActiveSupport::Notifications events that conflict with our own sequel instrumentor. Without this event formatter the sequel-rails events are recorded without the SQL query that's being executed.

Instance Method Summary collapse

Instance Method Details

#format(payload) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
# File 'lib/appsignal/event_formatter/sequel/sql_formatter.rb', line 13

def format(payload)
  [payload[:name].to_s, payload[:sql], SQL_BODY_FORMAT]
end