You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the minimal example that you can use to test Airbrake Ruby with your project (You can find your project ID and API KEY with your project's settings):
require'airbrake-ruby'# Every Airbrake notifier must configure# two options: `project_id` and `project_key`.Airbrake.configuredo |c|
c.project_id= <YourprojectID>
c.project_key='<Your project API KEY>'end# Asynchronous error delivery.begin1/0rescueZeroDivisionError=>ex# Return value is always `nil`.Airbrake.notify(ex)endputs'A ZeroDivisionError was sent to Airbrake asynchronously!',"Find it at your project's dashboard on https://airbrake.io"# Synchronous error delivery.begin1/0rescueZeroDivisionError=>ex# Return value is a Hash.response=Airbrake.notify_sync(ex)endputs"\nAnother ZeroDivisionError was sent to Airbrake, but this time synchronously.","See it at #{response['url']}"
Configuration
For advanced configuration options like error filtering or custom parameters, please visit our official GitHub repo.
The text was updated successfully, but these errors were encountered:
Installation
Using bundler
Add the Airbrake Ruby gem to your Gemfile:
Manual
Invoke the following command from your terminal:
Example
This is the minimal example that you can use to test Airbrake Ruby with your project (You can find your project ID and API KEY with your project's settings):
Configuration
For advanced configuration options like error filtering or custom parameters, please visit our official GitHub repo.
The text was updated successfully, but these errors were encountered: