Sha256: 16b5c9136284e02013ca6632af33785545afe00f9321ab3812477c02cd50e8bb

Contents?: true

Size: 518 Bytes

Versions: 4

Compression:

Stored size: 518 Bytes

Contents

# typed: true

require 'datadog/tracing/contrib/patcher'
require 'datadog/tracing/contrib/active_record/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

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-1.2.0 lib/datadog/tracing/contrib/active_record/patcher.rb
ddtrace-1.1.0 lib/datadog/tracing/contrib/active_record/patcher.rb
ddtrace-1.0.0 lib/datadog/tracing/contrib/active_record/patcher.rb
ddtrace-1.0.0.beta2 lib/datadog/tracing/contrib/active_record/patcher.rb