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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jpotts244
Copy link

@jpotts244 jpotts244 commented Nov 22, 2024

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

@artsy-peril
Copy link
Contributor

artsy-peril bot commented Nov 22, 2024

Warnings
⚠️ Please assign someone to merge this PR, and optionally include people who should review.

Generated by 🚫 dangerJS against 657f731

config.dsn = Convection.config.sentry_dsn if Convection.config.sentry_dsn
config.processors -= [Raven::Processor::PostData]
Copy link
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
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!! 🎉

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.

2 participants