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.
Slack Integration
Slack integration is tested as well. It worked well. I only followed the official docs.
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
Hello!
I followed the official rails integration docs.
There's only change from the default configurations to get the API key from the environments.
Integration
Here's the .env file
I tested it by my own trial account by raising an error in
welcome#index
.Slack Integration
Slack integration is tested as well. It worked well. I only followed the official docs.
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: