Sha256: 3b0019e6e15b76b9dfb0208f9f2d462361ecd7329c454d21b939dd692b488df7

Contents?: true

Size: 482 Bytes

Versions: 64

Compression:

Stored size: 482 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class ActiveRecord < Activator
      def can_instrument?
        defined?(::ActiveRecord::ConnectionAdapters::AbstractAdapter)
      end

      def instrument
        require 'instana/instrumentation/active_record'

        ::ActiveRecord::ConnectionAdapters::AbstractAdapter
          .prepend(Instana::Instrumentation::ActiveRecord)

        true
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
instana-1.202.0 lib/instana/activators/active_record.rb
instana-1.201.0 lib/instana/activators/active_record.rb
instana-1.201.0.pre1 lib/instana/activators/active_record.rb
instana-1.200.0 lib/instana/activators/active_record.rb
instana-1.200.0.pre1 lib/instana/activators/active_record.rb
instana-1.199.6 lib/instana/activators/active_record.rb
instana-1.199.5 lib/instana/activators/active_record.rb
instana-1.199.4 lib/instana/activators/active_record.rb
instana-1.199.3 lib/instana/activators/active_record.rb
instana-1.199.2 lib/instana/activators/active_record.rb
instana-1.199.1 lib/instana/activators/active_record.rb
instana-1.199.0 lib/instana/activators/active_record.rb
instana-1.198.0 lib/instana/activators/active_record.rb
instana-1.198.0.pre1 lib/instana/activators/active_record.rb
instana-1.197.0 lib/instana/activators/active_record.rb
instana-1.197.0.pre2 lib/instana/activators/active_record.rb
instana-1.197.0.pre1 lib/instana/activators/active_record.rb
instana-1.195.4 lib/instana/activators/active_record.rb
instana-1.195.3 lib/instana/activators/active_record.rb
instana-1.195.2 lib/instana/activators/active_record.rb