Sha256: 3de2955d123687f2c63d81dc42e5f74698f9c50beb59c1d2f8e6cebadfad9f26

Contents?: true

Size: 384 Bytes

Versions: 420

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class EventFormatter
    # @api private
    module ActiveRecord
      class SqlFormatter
        def format(payload)
          [payload[:name], payload[:sql], SQL_BODY_FORMAT]
        end
      end
    end
  end
end

Appsignal::EventFormatter.register(
  "sql.active_record",
  Appsignal::EventFormatter::ActiveRecord::SqlFormatter
)

Version data entries

420 entries across 420 versions & 1 rubygems

Version Path
appsignal-2.7.0 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.beta.2 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.beta.2-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.beta.1 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.beta.1-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.4-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.4 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.3-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.3 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.2-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.2 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.1 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.7.0.alpha.1-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.6.1-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.6.1 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.6.0-java lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.6.0 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.6.0.beta.1 lib/appsignal/event_formatter/active_record/sql_formatter.rb
appsignal-2.6.0.beta.1-java lib/appsignal/event_formatter/active_record/sql_formatter.rb