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

Version Path
appsignal-4.2.0-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.2.0 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.3-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.3 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.2-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.2 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.1-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.1 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.0-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.1.0 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.9-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.9 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.8-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.8 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.7-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.7 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.6-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.6 lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.5-java lib/appsignal/event_formatter/sequel/sql_formatter.rb
appsignal-4.0.5 lib/appsignal/event_formatter/sequel/sql_formatter.rb