Skip to content
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

chore: Upgrade to sentry-ruby, rails, sidekiq sdks, removes sentry-raven #1537

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

jpotts244
Copy link
Contributor

@jpotts244 jpotts244 commented Nov 22, 2024

Attempt to get us off of deprecated sentry-raven gem, installs sentry-ruby, sentry-rails, sentry-sidekiq

config.dsn = Convection.config.sentry_dsn if Convection.config.sentry_dsn
config.processors -= [Raven::Processor::PostData]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If Im reading the migration docs right, I think this is OK to remove as these processors are no longer used in the sdk and there's default data scrubbing behaviors

https://docs.sentry.io/platforms/ruby/migration/#removed-processors

Raven.user_context(id: @current_user)
def set_sentry_context
# Heads up! @current_user is the user's id as a string not an object
Sentry.set_user(user_id: @current_user)
end
Copy link
Contributor Author

@jpotts244 jpotts244 Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didnt want to mess with @current_user at this time - it is used everywhere
and its technically a STRING and not an object - bit of a gotcha when I was testing

@jpotts244 jpotts244 self-assigned this Nov 22, 2024
Copy link
Member

@jonallured jonallured left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!! 🎉

@jpotts244 jpotts244 merged commit 0832eb0 into main Nov 26, 2024
3 checks passed
@jpotts244 jpotts244 deleted the jpotts244/sentry-upgrade-attempt branch November 26, 2024 13:34
@artsy-peril artsy-peril bot mentioned this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants