Sha256: 29e09dde970494df690b67f87d61f528ed6d3122cae16e786eb2b962d991c5ad

Contents?: true

Size: 465 Bytes

Versions: 14

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Sidekiq
  module Tracer
    module Commons
      def operation_name(job)
        job["class"]
      end

      def tags(job, kind)
        {
          "component" => "Sidekiq",
          "span.kind" => kind,
          "sidekiq.queue" => job["queue"],
          "sidekiq.jid" => job["jid"],
          "sidekiq.retry" => job["retry"].to_s,
          "sidekiq.args" => job["args"].join(", ")
        }
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sidekiq-instrumentation-2.2.0 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-2.1.0 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-2.1.0.pre3 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-2.1.0.pre2 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-2.1.0.pre1 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-2.0.0 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-2.0.0.pre1 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-1.2.2 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-1.2.2.ejacobs2 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-1.2.2.ejacobs1 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-1.2.1 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-1.2.0 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-1.2.0.pre2 lib/sidekiq/tracer/commons.rb
sidekiq-instrumentation-1.1.0 lib/sidekiq/tracer/commons.rb