Skip to content

Commit

Permalink
set up sentry to eras
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 committed Oct 27, 2023
1 parent 6797dab commit d875ba7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

group :production, :staging do
gem 'newrelic_rpm'
gem 'sentry-ruby'
gem 'sentry-rails'
end

group :development, :test do
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ GEM
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sentry-rails (5.12.0)
railties (>= 5.0)
sentry-ruby (~> 5.12.0)
sentry-ruby (5.12.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand Down Expand Up @@ -290,6 +295,8 @@ DEPENDENCIES
rails (~> 7.0, >= 7.0.4.3)
rspec-rails
rubocop
sentry-rails
sentry-ruby
simplecov
spring
tzinfo-data
Expand Down
2 changes: 1 addition & 1 deletion config/credentials/production.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GtE58fB13AnMW/+89XPhgiKcTskECH0NtbKQQu/nAtMeI6Lj4qs6tzDU3ecfZgnO3HcD2qlpmvMia9vVZ+sjW+fmSwBxhPx4Y5J/Pw+ZvU8b+P70tOBjNvDrv78YDK/eA4xSDJKk/aclKkmnI36Xiz2M41enTWdnsCxXvCpbzeFGcAdecPT6w+DaxJZbyNhw6XG6wkgeY+HfmTJAJx4AVquQDEkmfWlRMkNaiPwCtiG38AKjiNRMm2TEivbwfxMm1bcgyY6GvcRV7+JpbZXhh/Jv7cccv9io9oZUhV+9WFXwocVj8DaImjtaJF7fTTrwLNGKu4PA/Kuq+lFwTdXDa7KOKwjCN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O9vYdKTw0ahnJzdFfql5LXUH7VJ+12cNbOanjVFjykcs3qY2N69PK1/ESAPqkyK8Fe0fosfAepUVm3rd7VLNMc2qGdWAxTAfdj59xYNaGU97+xRSATBMUdsGNoFcyv7WTUUxcn01Qz9WqyLdCzyIABEwvcXWtc3pNJ3U7bwC0fsqQkL+zqt883eYGDxU4Mn0H5IX21OfqTYDuPB3mQltuQe2KUq2KZcCLtBVce0nRGKx82dEhnjP+PRWk7moCsG8eyNqqi1i1ZqZcDemPTXL48+IgCLfmMYju7uDWTM5OWG9e+TWEqUowwUV+Gp5AoGKUt/DtfityIQmdJde7+6YaxYDsDEKZfP6na4C2Zyt6qXtCWYIBXo8sEuEE7j38lrWFgNODc8k53PgSBp6R0lPjzw5/U9HPzBKmkn705JdfRN5kYbKVpCPOQqMpjYU1jSWpqdO4ZgobEWT5n3XtHCuV6oO/P5t2lbwm+mVuVotrjv3p7/x+CbN+nTvA9Kma7mOdK8FMrQlqXD/FpnSvSLuO5/3Q7LltdKF3njmmUmsqFnbpXOaxKpgDb+ijeuwndEZ1hvyLepcxahBevbOS+ZOtdWHmfGhTlZ4uCgbgAXJ04FH8xFrf1/VG4GtMHuapT6tlJcxqBer4--8e7ThvhXjefdpI+0--QG+VUWhyp9cydSvpzydc0w==
2 changes: 1 addition & 1 deletion config/credentials/staging.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
HhrqWcDvmPU394rGy19dkSuTjV3PNS1itP79kJPhjJftooSh66OaMjM+fqJlcyYTh9p7c5W8oWIDkvhslvUwsngh5hLPHdKhm/HAikyleejdiRlenr6PPrdDu+wO5WKEZcS+QgmxE6rG+tEcsDSbkNi1lPaj1Ec3OMHna6WDLsCxuOmzdQyw07uWn2gpNNzaz4gEUL6z4QplbnUmRwpRNR1pUeRMEaverJjRenNvwuA/tQiCJqDReXFZicDl4udxC/42eqA1n+GkzfjF0Zj2e2NOVEHJv9lt6/eT0jkN20GICrSdrA6nMwjjCrj+v+yTTfGczPJ8A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ZVCkDDVdtTCc3/Bm9IPsiG1QQyRvvmzVXYLNLL5Kw/W8HqtYsFXJz6RRp6Z1SV/6Bg6B8SPSCl63yk3U3U2oKbx+XbIFCy0CFCRBIfUdoBrwwBzaBOU74XP6VAtXEm3b/FIaKkTx2NBYNta7lx9aMMJTPs3hXKc4boETv325J5lgHToY14KsdtqIko4plhytFF8oJOjyrklAf5gwqXuJ4DdKyl7kDfE8s4EzhoqBivu7FlyT0W3NQTBwyV2ySYI6L0xZQl3ElvDZDu5C0so1BeclE7+Y+KC3Ggky3f6m2M5/oXejFzy7n4P9hkJgA/9OlpfVBQJ/l7vrapeDCtq2Z7JB5g8Ksp21VsC6Kp/ARcIa0H69GmfKJfcpHpAzLdfbjc7QkDtP6ob/Ni4q/DTgHy++gLQQDbHYg+4kyhnuu+4ty/3lMQMzjcnSKQkHae9f/UZLNJSYtUBsdnXue6mtUE2860Qc4UlcZbTC8jdlCczHY5ITrmlcirezCoRT2Yocq/i4KNh64BHIS0ffWPPA1sNKWznE2EY+0d7QlOMI5y6SyxYuFcmQ+c4X+pK5H/YxqYwuA18w1hZwYIx9Reczg==--FlO8o/Jn2tWu+niN--ckrShF0Yhf3IiDHwwt3xVw==
7 changes: 7 additions & 0 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Sentry.init do |config|
config.dsn = Rails.application.credentials.sentry_dsn
config.breadcrumbs_logger = [:active_support_logger, :http_logger]
config.environment = Rails.env

config.traces_sample_rate = 0.25
end

0 comments on commit d875ba7

Please sign in to comment.