Sha256: cb88b103dd101508ccc383c3e66bfea7daac68c8359d6b89669f3139628c8272

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

# typed: true
require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/lograge/instrumentation'

module Datadog
  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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/lograge/patcher.rb
ddtrace-0.54.1 lib/ddtrace/contrib/lograge/patcher.rb
ddtrace-0.54.0 lib/ddtrace/contrib/lograge/patcher.rb
ddtrace-0.53.0 lib/ddtrace/contrib/lograge/patcher.rb
ddtrace-0.52.0 lib/ddtrace/contrib/lograge/patcher.rb