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

Overview

Common behavior for patcher modules.

‘include`ing 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



14
15
16
17
# File 'lib/datadog/tracing/contrib/patcher.rb', line 14

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