Sha256: f419b6b1c35fb21d7fafccbd9c6404b6f3d64e48cdce9a9f99c7043719e0a2b3

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 Bytes

Contents

# typed: true
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

5 entries across 5 versions & 1 rubygems

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