lib/labkit/middleware/sidekiq/tracing/server.rb in gitlab-labkit-0.13.5 vs lib/labkit/middleware/sidekiq/tracing/server.rb in gitlab-labkit-0.14.0
- old
+ new
@@ -15,10 +15,10 @@
SPAN_KIND = "server"
def call(_worker, job, _queue)
context = Labkit::Tracing::TracingUtils.tracer.extract(OpenTracing::FORMAT_TEXT_MAP, job)
- Labkit::Tracing::TracingUtils.with_tracing(operation_name: "sidekiq:#{job["class"]}", child_of: context, tags: tags_from_job(job, SPAN_KIND)) { |_span| yield }
+ Labkit::Tracing::TracingUtils.with_tracing(operation_name: "sidekiq:#{job_class(job)}", child_of: context, tags: tags_from_job(job, SPAN_KIND)) { |_span| yield }
end
end
end
end
end