Sha256: d4db9e88d223921db57c79d1166649f4bb836a7700408063b2a2cd5894ef0138

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/semantic_logger/instrumentation'

module Datadog
  module Contrib
    # Datadog SemanticLogger integration.
    module SemanticLogger
      # Patcher enables patching of 'semantic_logger' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        # patch applies our patch
        def patch
          ::SemanticLogger::Logger.include(Instrumentation)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/semantic_logger/patcher.rb
ddtrace-0.51.0 lib/ddtrace/contrib/semantic_logger/patcher.rb