Skip to content
New issue

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

Bugsnag Integration #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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