Sha256: 7d2adfcfb7cfaeb59ac53299788268526a69249a5066e57427b865257d4e4d7e

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

require_relative '../patcher'
require_relative 'events'

module Datadog
  module Tracing
    module Contrib
      module ActiveRecord
        # Patcher enables patching of 'active_record' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            Events.subscribe!
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/tracing/contrib/active_record/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/active_record/patcher.rb