Module: ThreeScale::Backend::Logging::External::Impl::Airbrake
- Defined in:
- lib/3scale/backend/logging/external/impl/airbrake.rb
Class Method Summary collapse
- .notify_proc ⇒ Object
- .setup(api_key) ⇒ Object
- .setup_rack(rack) ⇒ Object
- .setup_rake ⇒ Object
- .setup_worker ⇒ Object
Class Method Details
.notify_proc ⇒ Object
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_rake ⇒ Object
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 |