class Pantomath::Instrumentation::Sidekiq::Tracer

Private Instance Methods

span_name() click to toggle source
# File lib/pantomath/instrumentation/sidekiq/tracer.rb, line 19
def span_name
  "Async/Worker #{context.job['class']}"
end
tags() click to toggle source
# File lib/pantomath/instrumentation/sidekiq/tracer.rb, line 10
def tags
  {
    "span.kind" => "async/worker",
    "span.tracer" => "Pantomath::Tracer::Sidekiq",
    "worker.queue" => context.queue,
    "worker.class" => context.job["class"]
  }
end
tracer_context() click to toggle source
# File lib/pantomath/instrumentation/sidekiq/tracer.rb, line 23
def tracer_context
  Pantomath.extract(OpenTracing::FORMAT_TEXT_MAP, context.job)
end