Sha256: b98bc620b2733e08f52da478bc006155892a8b3ec23d384f2ca8ef5be2038239
Contents?: true
Size: 583 Bytes
Versions: 3
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module Labkit module Tracing module Sidekiq # SidekiqCommon is a mixin for the sidekiq middleware components module SidekiqCommon include Labkit::Tracing::Common def tags_from_job(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 end
Version data entries
3 entries across 3 versions & 1 rubygems