lib/raven/integrations/sidekiq.rb in sentry-raven-2.4.0 vs lib/raven/integrations/sidekiq.rb in sentry-raven-2.5.0
- old
+ new
@@ -49,10 +49,10 @@
end
# this will change in the future:
# https://github.com/mperham/sidekiq/pull/3161
def culprit_from_context(context)
- classname = (context["class"] || (context["job"] && context["job"]["class"]))
+ classname = (context["class"] || (context["job"] && (context["job"]["wrapped"] || context["job"]["class"])))
if classname
"Sidekiq/#{classname}"
elsif context["event"]
"Sidekiq/#{context['event']}"
else