arkency / find-open-source-mentor

A platform to connect junior developers with open source projects
35 stars 11 forks source link

Bugsnag Integration #33

Open htuerker opened 5 years ago

htuerker commented 5 years ago

Hello!

I followed the official rails integration docs.

There's only change from the default configurations to get the API key from the environments.

# app_root/config/initializers/bugsnag.rb
Bugsnag.configure do |config|
  config.api_key = ENV['BUGSNAG_API_KEY']
end

Integration

Here's the .env file

GITHUB_APP_ID=XXXX
GITHUB_APP_SECRET=XXXXX

# PRODUCTION
BUGSNAG_API_KEY=XXXXX

I tested it by my own trial account by raising an error in welcome#index. Screen Shot 2019-10-25 at 1 41 56 PM

Slack Integration

Slack integration is tested as well. It worked well. I only followed the official docs.

Screen Shot 2019-10-25 at 1 56 19 PM


Inaccurate Points

We probably won't use bugsnag on development&test environments. In my opinion, we should install bugsnag dependency only on production. For now, it's in the general dependency list. My Suggestion is:

# app_root/Gemfile
group :production do
  gem 'bugsnag'
end