Installing Airbrake in your Ruby app takes no more than 3 minutes. Install Airbrake notifiers in one of two ways: either with the Airbrake CLI or manually.
If you use Mac or Linux, you have the option to add the Ruby notifier to your Ruby project with the Airbrake CLI. With the CLI, you can set up your notifiers from the terminal and send custom errors directly to Airbrake. For download instructions, head on over to the CLI docs page.
[.code-snippet]$ brew install airbrake
==>Installing airbrake from airbrake/airbrake-cli
==>Downloading https://github.com/airbrake/airbrake-cli/releases/download/v0.12
Already downloaded: /Users/scott/Library/Caches/Homebrew/downloads/df0fa5c39976a1b59da987099de8cb5bf7cabd39f8b26cf3f82e700482176cbd--airbrake_0.12.0_mac-os_x86_64.tar.gz
🍺 /usr/local/Cellar/airbrake/0.12.0: 3 files, 27.3MB, built in 4 seconds
$ airbrake login
Enter your email: scott@example.com
Enter your password:
Enter your subdomain (optional):
Done! The Airbrake CLI is configured for scott@example.com $ airbrake install --create-project "My Project"
Project "My Project" successfully created: https://mydemo.airbrake.io/projects/334168
Project "My Project" successfully created: https://mydemo.airbrake.io/projects/334168[.code-snippet]
Don't want to use the Airbrake CLI? Continue reading to learn how to manually install Airbrake to capture Ruby errors.
Add the Airbrake Ruby gem to your Gemfile:
or invoke the following command from your terminal:
Full instructions can be found on airbrake-ruby GitHub repository.
You know that something's breaking your application, but combing through massive log files in search of an error is neither appealing nor productive. Unfortunately, it has to be done. Or does it? With Airbrake Error Monitoring for Ruby, you can skip the massive log files in favor of instant insight into your broken code.
In addition to several dashboards that provide general information about the health of your Ruby application, Airbrake lets you know in which environment the error occurred and what deployment caused it. Airbrake Ruby Error Monitoring includes detailed stack traces, context, and browser breakdowns to make it simple to drill down and catch troublesome errors.
Developers rely on Airbrake Ruby Error Monitoring to:
Airbrake created their application with developers in mind. That’s why we’ve made it incredibly easy to install. All you have to do is insert a couple lines of code. With both Airbrake Error Monitoring and Performance Monitoring, you can feel confident that your application will run smoothly. See for yourself how frictionless Airbrake is and try a free trial, today.