Class: Appsignal::EventFormatter::Sequel::SqlFormatter
- Inherits:
-
Appsignal::EventFormatter
- Object
- Appsignal::EventFormatter
- Appsignal::EventFormatter::Sequel::SqlFormatter
- Defined in:
- lib/appsignal/event_formatter/sequel/sql_formatter.rb
Overview
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.
Constant Summary
Constants inherited from Appsignal::EventFormatter
DEFAULT, Appsignal::EventFormatter::SQL_BODY_FORMAT
Instance Method Summary collapse
Methods inherited from Appsignal::EventFormatter
register, registered?, unregister
Instance Method Details
#format(payload) ⇒ Object
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 |