Sha256: b4ea9851a3ab23ef789c90266e9971297c1e1b74aad47fc010804c2952eda39b
Contents?: true
Size: 830 Bytes
Versions: 35
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true require_relative '../patcher' module Datadog module Tracing module Contrib module DelayedJob # Patcher enables patching of 'delayed_job' module. module Patcher include Contrib::Patcher module_function def target_version Integration.version end def patch require_relative 'plugin' add_instrumentation(::Delayed::Worker) patch_server_internals end def add_instrumentation(klass) klass.plugins << Plugin end def patch_server_internals require_relative 'server_internal_tracer/worker' ::Delayed::Worker.prepend(ServerInternalTracer::Worker) end end end end end end
Version data entries
35 entries across 35 versions & 2 rubygems