ifmeorg / ifme

Free, open source mental health communication web app to share experiences with loved ones
http://www.if-me.org/
GNU Affero General Public License v3.0
1.45k stars 731 forks source link

Upgrade sentry #2232

Closed julianguyen closed 1 year ago

julianguyen commented 1 year ago

Description

With the recent upgrade to Ruby 3 and Rails 7, we need to replace sentry-raven with sentry-ruby in our Heroku deployment build. This guide outlines it all!

We use Sentry for our observability in production 💃

This is the error message:

remote:        Post-install message from sentry-raven:        
remote:        `sentry-raven` is deprecated! Please migrate to `sentry-ruby`        
remote:                
remote:        See https://docs.sentry.io/platforms/ruby/migration for the migration guide.        
remote:                
remote:        Bundle completed (86.17s)        
remote:        Cleaning up the bundler cache.        
remote:        Resolving dependencies....        
remote:        Removing bundler (2.3.25)        
remote: -----> Detecting rake tasks        
remote: -----> Preparing app for Rails asset pipeline        
remote:        Running: rake assets:precompile        
remote:        I, [2023-05-09T04:46:03.247291 #2731]  INFO -- sentry: ** [Raven] Raven 3.1.2 ready to catch errors        
remote:        Sending event cdf8aa242f8d46609764e40a49a38f83 to Sentry        
remote:        rake aborted!  

Reviewing this pull request? Check out our Code Review Practices guide if you haven't already!