Module: Bigcommerce::Lightstep::Redis::Wrapper

Defined in:
lib/bigcommerce/lightstep/redis/wrapper.rb

Overview

Instrumentation wrapper for Redis

Class Method Summary collapse

Class Method Details

.patchObject



26
27
28
29
30
31
32
33
34
35
# File 'lib/bigcommerce/lightstep/redis/wrapper.rb', line 26

def patch
  require 'redis' # thread and fork safety
  return if @wrapped

  wrap unless @wrapped
  @wrapped = true
rescue ::LoadError => _e
  @wrapped = false
  # noop
end