Sha256: 68c825d0728a5b0e0a77fa1c8aa630ca1d005b8b7d15e5dfaff481d8976768fe

Contents?: true

Size: 587 Bytes

Versions: 12

Compression:

Stored size: 587 Bytes

Contents

# typed: true

require_relative '../patcher'
require_relative 'instrumentation'

module Datadog
  module Tracing
    module Contrib
      # Datadog Lograge integration.
      module Lograge
        # Patcher enables patching of 'lograge' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          # patch applies our patch
          def patch
            ::Lograge::LogSubscribers::Base.include(Instrumentation)
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.8.0 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.7.0 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.5.2 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.5.1 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.5.0 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.4.2 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.4.1 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.4.0 lib/datadog/tracing/contrib/lograge/patcher.rb
ddtrace-1.3.0 lib/datadog/tracing/contrib/lograge/patcher.rb