Sha256: bc404d63dbe481a49ccef5f28dc52ef4a0adaf37d27951d85b5f2d73ecf93c9f
Contents?: true
Size: 680 Bytes
Versions: 118
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module Appsignal class EventFormatter # @api private module Sequel # Compatability 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. class SqlFormatter def format(payload) [payload[:name].to_s, payload[:sql], SQL_BODY_FORMAT] end end end end end Appsignal::EventFormatter.register( "sql.sequel", Appsignal::EventFormatter::Sequel::SqlFormatter )
Version data entries
118 entries across 118 versions & 1 rubygems