Sha256: c577ee27f1ea9c41bc43c0eea8913fe4275f7345ed8eced9a1284e83369aa4b4
Contents?: true
Size: 745 Bytes
Versions: 20
Compression:
Stored size: 745 Bytes
Contents
require 'ddtrace/ext/app_types' require 'ddtrace/contrib/sidekiq/ext' module Datadog module Contrib module Sidekiq # Common functionality used by both client-side and server-side tracers. module Tracing def initialize(options = {}) @tracer = options[:tracer] || Datadog.configuration[:sidekiq][:tracer] end protected # If class is wrapping something else, the interesting resource info # is the underlying, wrapped class, and not the wrapper. This is # primarily to support `ActiveJob`. def job_resource(job) if job['wrapped'] job['wrapped'] else job['class'] end end end end end end
Version data entries
20 entries across 20 versions & 2 rubygems