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.4.7-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.7 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.6-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.6 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.5-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.5 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.4-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.4 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.3-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.3 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.2-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.2 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.1-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.1 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.0-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.4.0 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.3.10-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.3.10 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.3.9-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-3.3.9 lib/appsignal/event_formatter/sequel/sql_formatter.rb