Performance Monitoring for Rails applications

Performance Monitoring is built into the same notifier you use to report errors from your application. To start sending performance data for your app to Airbrake just install or upgrade the Airbrake gem to the latest version.

Step 1: Install the latest version of the Airbrake gem

Add the Airbrake gem to your Gemfile:

gem 'airbrake'

To integrate Airbrake with your Rails application, you need to know your project id and project key. Set AIRBRAKE_PROJECT_ID & AIRBRAKE_PROJECT_KEY environment variables with your project’s values and generate the Airbrake config:


rails g airbrake

Step 2: Update your config file

Check your config/initializers/airbrake.rb file to make sure the performance_stats options is set to true.

Airbrake.configure do |c|
  c.performance_stats = true


Great job! If you’ve used this example in your app, you can visit your Airbrake project’s Performance Dashboard to see your performance data! Soon enough you’ll have more insights into your application’s performance. In the meantime why not check out the Performance Dashboard features. Have questions about Performance Monitoring? Check out our Performance Monitoring FAQ for more information.

Upgrading from a previous gem version?

If you are upgrading from a previous version of our gem, please follow our upgrade guide to get started with Performance Monitoring.