Module: Datadog::Contrib::Dalli::Patcher
- Defined in:
- lib/ddtrace/contrib/dalli/patcher.rb
Overview
Responsible for hooking the instrumentation into dalli
Class Method Summary collapse
Class Method Details
.patch ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ddtrace/contrib/dalli/patcher.rb', line 14 def patch return @patched if patched? || !compatible? require 'ddtrace/ext/app_types' require_relative 'instrumentation' add_pin! Instrumentation.patch! @patched = true rescue => e Tracer.log.error("Unable to apply Dalli integration: #{e}") @patched end |
.patched? ⇒ Boolean
29 30 31 |
# File 'lib/ddtrace/contrib/dalli/patcher.rb', line 29 def patched? @patched end |