We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the Airbrake gem to your Gemfile:
gem 'airbrake'
Invoke the following command from your terminal:
gem install airbrake
To use Airbrake with Sinatra, simply require the gem, configure it and use our Rack middleware.
require
use
(You can find your project ID and API key in your project's settings)
# myapp.rb require 'sinatra/base' require 'airbrake' Airbrake.configure do |c| c.project_id = <Your project ID> c.project_key = '<Your project API KEY>' # Display debug output. c.logger.level = Logger::DEBUG end class MyApp < Sinatra::Base use Airbrake::Rack::Middleware get('/') { 1/0 } end run MyApp.run!
For more information please visit our official GitHub repo.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Installation
Using bundler
Add the Airbrake gem to your Gemfile:
Manual
Invoke the following command from your terminal:
Configuration
To use Airbrake with Sinatra, simply
require
the gem, configure it anduse
our Rack middleware.(You can find your project ID and API key in your project's settings)
Full documentation
For more information please visit our official GitHub repo.
The text was updated successfully, but these errors were encountered: