Skip to content

Conversation

@htuerker
Copy link

@htuerker htuerker commented Oct 25, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant