Skip to content

Instantly share code, notes, and snippets.

@biow0lf
biow0lf / z_airbrake.rb
Created June 9, 2022 00:25 — forked from 2called-chaos/z_airbrake.rb
Airbrake config example for Errbit
Airbrake.configure do |config|
# project specific
config.project_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
# use git SHA & current commit as app version
config.app_version = "Ruby: #{RUBY_VERSION} » Rails: #{Rails::VERSION::STRING} » " << `cd #{Rails.root} && git log -1 --pretty="%h - %B" HEAD`
# can always be 1
config.project_id = 1