Module: Datadog::Tracing::Contrib::Patcher

Defined in:
lib/datadog/tracing/contrib/patcher.rb

Overview

Common behavior for patcher modules.

includeing Patcher into a new module is the recommend way to create a custom patcher. The patcher can then be provided to a custom Integration for instrumentation.

Defined Under Namespace

Modules: CommonMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



11
12
13
14
# File 'lib/datadog/tracing/contrib/patcher.rb', line 11

def self.included(base)
  base.singleton_class.prepend(CommonMethods)
  base.prepend(CommonMethods) if base.instance_of?(Class)
end