module TestProf::EventProf::CustomEvents::SidekiqInline
def setup!
def setup! @depth = 0 Sidekiq::Client.prepend ClientPatch end
def track
def track @depth += 1 res = nil begin res = if @depth == 1 ActiveSupport::Notifications.instrument( 'sidekiq.inline' ) { yield } else yield end ensure @depth -= 1 end res end