Module: BrainzLab::Instrumentation::HTTPartyInstrumentation

Defined in:
lib/brainzlab/instrumentation/httparty.rb

Defined Under Namespace

Modules: Patch

Class Method Summary collapse

Class Method Details

.install!Object



9
10
11
12
13
14
15
16
17
# File 'lib/brainzlab/instrumentation/httparty.rb', line 9

def install!
  return unless defined?(::HTTParty)
  return if @installed

  ::HTTParty.singleton_class.prepend(Patch)

  @installed = true
  BrainzLab.debug_log('HTTParty instrumentation installed')
end

.installed?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/brainzlab/instrumentation/httparty.rb', line 19

def installed?
  @installed
end

.reset!Object



23
24
25
# File 'lib/brainzlab/instrumentation/httparty.rb', line 23

def reset!
  @installed = false
end