Module Airbrake
In: lib/airbrake.rb
lib/airbrake/sidekiq/error_handler.rb
lib/airbrake/rack/notice_builder.rb
lib/airbrake/rack/middleware.rb
lib/airbrake/rack/user.rb
lib/airbrake/version.rb
lib/airbrake/capistrano/tasks.rb
lib/airbrake/rails/active_job.rb
lib/airbrake/rails/railtie.rb
lib/airbrake/rails/action_controller.rb
lib/airbrake/rails/active_record.rb

We use Semantic Versioning v2.0.0 More information: semver.org/

Methods

Classes and Modules

Module Airbrake::Capistrano
Module Airbrake::Rack
Module Airbrake::Rails
Module Airbrake::Sidekiq

Constants

AIRBRAKE_VERSION = '5.6.1'.freeze

Public Class methods

Attaches a callback (builder) that runs every time the Rack integration reports an error. Can be used to attach additional data from the Rack request.

@example Adding remote IP from the Rack environment

  Airbrake.add_rack_builder do |notice, request|
    notice[:params][:remoteIp] = request.env['REMOTE_IP']
  end

@yieldparam notice [Airbrake::Notice] notice that will be sent to Airbrake @yieldparam request [Rack::Request] current rack request @yieldreturn [void] @return [void] @since 5.1.0

[Validate]