Skip to content

Commit

Permalink
Merge pull request #65 from pulibrary/i23_add_honeybadger
Browse files Browse the repository at this point in the history
Add Honeybadger
  • Loading branch information
sandbergja authored Sep 15, 2023
2 parents ec875cf + fd58158 commit fb077e9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ require 'capistrano/passenger'

# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }

require 'capistrano/honeybadger'
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gem 'activesupport'
gem 'bootsnap', require: false
gem 'ddtrace', require: 'ddtrace/auto_instrument'
gem 'dogstatsd-ruby'
gem 'honeybadger'
gem 'pg'
gem 'puma', '~> 5.0'
gem 'railties'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ GEM
erubi (1.12.0)
ffi (1.15.5)
hashdiff (1.0.1)
honeybadger (5.2.1)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
json (2.6.3)
Expand Down Expand Up @@ -208,6 +209,7 @@ DEPENDENCIES
ddtrace
dogstatsd-ruby
ed25519
honeybadger
pg
pry-byebug
puma (~> 5.0)
Expand Down
24 changes: 24 additions & 0 deletions config/honeybadger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# For more options, see https://docs.honeybadger.io/lib/ruby/gem-reference/configuration
# The API key is configured as an environment variable in Princeton Ansible

# The environment your app is running in.
env: "<%= Rails.env %>"

# The absolute path to your project folder.
root: "<%= Rails.root.to_s %>"

# Honeybadger won't report errors in these environments.
development_environments:
- test
- development

# By default, Honeybadger won't report errors in the development_environments.
# You can override this by explicitly setting report_data to true or false.
# report_data: true

# The current Git revision of your project. Defaults to the last commit hash.
# revision: null

# Enable verbose debug logging (useful for troubleshooting).
debug: false

0 comments on commit fb077e9

Please sign in to comment.