Sha256: 25a99c3fb992bf3f1f4e26bd67964cc620a9bbf226ae1c60efc754fd710561ab

Contents?: true

Size: 412 Bytes

Versions: 10

Compression:

Stored size: 412 Bytes

Contents

module Sequel
  module Extensions
    module SequelInstrumentation
      def log_connection_yield(sql, conn, args = nil)
        ActiveSupport::Notifications.instrument "sql.sequel", sql: sql, conn: conn, binds: args do
          super
        end
      end
    end
  end
  Database.register_extension(:sequel_instrumentation, Extensions::SequelInstrumentation)
  Database.extension(:sequel_instrumentation)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sequelize-rails-1.0.0 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.6.2 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.6.1 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.6.0 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.5.0 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.4.1 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.4.0 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.3.0 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.2.1 lib/sequel/extensions/sequel_instrumentation.rb
sequelize-rails-0.2.0 lib/sequel/extensions/sequel_instrumentation.rb