Sha256: a1519fbb2a432c3d2912245f604572f999b5fb96247b4dc49c5d4663c36ce6b7
Contents?: true
Size: 680 Bytes
Versions: 84
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module Appsignal class EventFormatter # @api private module Sequel # 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. 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
84 entries across 84 versions & 1 rubygems