Commit 7efdab8f authored by Dan Jensen's avatar Dan Jensen

Fix use of Raven optional attributes

This fixes a usage of Raven optional attributes, which must be
provided under one of the acceptable, pre-defined keys.
parent b040c392
......@@ -19,7 +19,7 @@ module Groups
rescue Module::DelegationError => exception
# TEMPORARY: Rescue when a User record is not available,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/338707
Raven.capture_exception(exception, group_id: @group.id, user_id: @current_user.id)
Raven.capture_exception(exception, tags: { group_id: @group.id, user_id: @current_user.id })
end
private
......
......@@ -29,7 +29,7 @@ RSpec.describe Groups::ExportMembershipsWorker do
it 'rescues the exception' do
expect(Notify).not_to receive(:memberships_export_email)
expect(Raven).to receive(:capture_exception)
expect(Raven).to receive(:capture_exception).and_call_original
worker.perform(group.id, user.id)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment