Set caller_id in Sidekiq based on wrapped job class if present
Mailer jobs in Sidekiq end up with job
like this:
{
"class" => "ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper",
"wrapped" => "ActionMailer::MailDeliveryJob"
}
We want the wrapped class for those cases as it's more specific.
We already did this in Rails in gitlab-org/gitlab!53006 (merged), but this doesn't affect the caller_id
.
Needed for gitlab-org/gitlab!55854 (merged).
Edited by Sean McGivern