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

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/active_model_serializers/patcher.rb

Overview

Patcher enables patching of ‘active_model_serializers’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.get_option(option) ⇒ Object



25
26
27
# File 'lib/datadog/tracing/contrib/active_model_serializers/patcher.rb', line 25

def get_option(option)
  Datadog.configuration.tracing[:active_model_serializers].get_option(option)
end

.patchObject



21
22
23
# File 'lib/datadog/tracing/contrib/active_model_serializers/patcher.rb', line 21

def patch
  Events.subscribe!
end

.target_versionObject



17
18
19
# File 'lib/datadog/tracing/contrib/active_model_serializers/patcher.rb', line 17

def target_version
  Integration.version
end