Module: ThreeScale::Backend::Logging::External::Impl::Bugsnag

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

Class Method Summary collapse

Class Method Details

.notify_procObject



33
34
35
# File 'lib/3scale/backend/logging/external/impl/bugsnag.rb', line 33

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

.setup(api_key) ⇒ Object



13
14
15
16
17
# File 'lib/3scale/backend/logging/external/impl/bugsnag.rb', line 13

def setup(api_key)
  do_require

  configure api_key
end

.setup_rack(rack) ⇒ Object



19
20
21
# File 'lib/3scale/backend/logging/external/impl/bugsnag.rb', line 19

def setup_rack(rack)
  rack.use middleware
end

.setup_rakeObject



23
24
25
# File 'lib/3scale/backend/logging/external/impl/bugsnag.rb', line 23

def setup_rake
  # no-op
end

.setup_workerObject



27
28
29
30
31
# File 'lib/3scale/backend/logging/external/impl/bugsnag.rb', line 27

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

  External::Resque.setup klass
end