-
Notifications
You must be signed in to change notification settings - Fork 61
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
Upgrade Sentry #914
base: 2024-upgrades-main
Are you sure you want to change the base?
Upgrade Sentry #914
Conversation
see: #913
config.dsn = Rails.application.secrets.sentry_dsn | ||
end | ||
Sentry.init do |config| | ||
config.dsn = Rails.application.secrets.sentry_dsn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to init in order not to error in tests. It won't send events if sentry_dsn is empty.
def set_context | ||
Raven.extra_context(message: request.body.read) | ||
request.body.rewind | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This moved to being called inside of the .with_scope
block
A minor heads up that our internal Sentry instance is Sentry 9.1.2 which doesn't support the new |
I'll mark this as a draft so it doesnt get merged by accident. @alexymik do you happen to know if upgrading the sentry-raven gem would be compatible? I havent found a compatibility list yet. |
see: #913