Module: ThreeScale::Backend::Logging::External::Impl::Airbrake

Defined in:
lib/3scale/backend/logging/external/impl/airbrake.rb

Class Method Summary collapse

Class Method Details

.notify_procObject



36
37
38
# File 'lib/3scale/backend/logging/external/impl/airbrake.rb', line 36

def notify_proc
  klass.method(:notify).to_proc
end

.setup(api_key) ⇒ Object



11
12
13
14
15
# File 'lib/3scale/backend/logging/external/impl/airbrake.rb', line 11

def setup(api_key)
  do_require

  configure api_key
end

.setup_rack(rack) ⇒ Object



17
18
19
# File 'lib/3scale/backend/logging/external/impl/airbrake.rb', line 17

def setup_rack(rack)
  rack.use middleware
end

.setup_rakeObject



21
22
23
24
25
26
27
28
# File 'lib/3scale/backend/logging/external/impl/airbrake.rb', line 21

def setup_rake
  require 'airbrake/tasks'
  require 'airbrake/rake_handler'

  ::Airbrake.configure do |config|
    config.rescue_rake_exceptions = true
  end
end

.setup_workerObject



30
31
32
33
34
# File 'lib/3scale/backend/logging/external/impl/airbrake.rb', line 30

def setup_worker
  require '3scale/backend/logging/external/resque'

  External::Resque.setup klass
end