Sha256: 29d6e7c167c1df4cdcc2532645d2cabbd14f35059c7ec4dc483f402c9ed84590

Contents?: true

Size: 470 Bytes

Versions: 14

Compression:

Stored size: 470 Bytes

Contents

require "skylight/normalizers/sql"

module Skylight
  module Normalizers
    module ActiveRecord
      # Normalizer for SQL requests
      class SQL < Skylight::Normalizers::SQL
        register "sql.active_record"
      end

      class FutureResult < Normalizer
        register "future_result.active_record"

        def normalize(_trace, _name, payload)
          ["db.future_result", "Async #{payload[:args][1] || "Query"}"]
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
skylight-6.1.0.beta lib/skylight/normalizers/active_record/sql.rb
skylight-6.0.4 lib/skylight/normalizers/active_record/sql.rb
skylight-6.0.3 lib/skylight/normalizers/active_record/sql.rb
skylight-5.3.5 lib/skylight/normalizers/active_record/sql.rb
skylight-6.0.2 lib/skylight/normalizers/active_record/sql.rb
skylight-6.0.1 lib/skylight/normalizers/active_record/sql.rb
skylight-6.0.0 lib/skylight/normalizers/active_record/sql.rb
skylight-6.0.0.beta2 lib/skylight/normalizers/active_record/sql.rb
skylight-6.0.0.beta lib/skylight/normalizers/active_record/sql.rb
skylight-5.3.4 lib/skylight/normalizers/active_record/sql.rb
skylight-5.3.3 lib/skylight/normalizers/active_record/sql.rb
skylight-5.3.2 lib/skylight/normalizers/active_record/sql.rb
skylight-5.3.1 lib/skylight/normalizers/active_record/sql.rb
skylight-5.3.0 lib/skylight/normalizers/active_record/sql.rb