We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9eeda commit e748124Copy full SHA for e748124
1 file changed
sentry-rails/lib/sentry/rails/active_job.rb
@@ -39,9 +39,7 @@ def serialize
39
40
if Sentry.configuration.send_default_pii
41
user = Sentry.get_current_scope.user
42
- allowed = user.each_with_object({}) do |(k, v), acc|
43
- acc[k.to_s] = v if USER_FIELDS_ALLOWLIST.include?(k.to_s)
44
- end
+ allowed = user.transform_keys(&:to_s).slice(*USER_FIELDS_ALLOWLIST)
45
sentry_data["user"] = allowed unless allowed.empty?
46
end
47
0 commit comments