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

Version Path
appsignal-3.6.2-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.6.2 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.6.1-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.6.1 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.6.0-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.6.0 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.6-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.6 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.5-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.5 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.4-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.4 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.3-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.3 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.2-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.2 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.1-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.1 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.0-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.5.0 lib/appsignal/event_formatter/sequel/sql_formatter.rb