`before_send` should be assigned a lambda

This commit is contained in:
Karina Kwiatek 2023-01-28 22:18:43 +01:00
parent da9a170e67
commit 272b98c954
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ Sentry.init do |config|
Excon::Error::ServiceUnavailable => 'external-service',
Twitter::Error::InternalServerError => 'external-service',
}
config.before_send do |event, hint|
config.before_send = lambda do |event, hint|
if hint[:exception].is_a?(Errors::Base)
# These are used for user-facing errors, not when something goes wrong
nil