Skip to content

Set caller_id in Sidekiq based on wrapped job class if present

Sean McGivern requested to merge set-caller-id-based-on-wrapped-class into master

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

Merge request reports