Sha256: 51354b9956c02668db9dbe1bd23a33f9594be0895f4e3bb9b48d0ab7e3141383
Contents?: true
Size: 676 Bytes
Versions: 26
Compression:
Stored size: 676 Bytes
Contents
require 'ddtrace/contrib/shoryuken/tracer' module Datadog module Contrib module Shoryuken # Patcher enables patching of 'shoryuken' module. module Patcher include Contrib::Patcher module_function def patched? done?(:shoryuken) end def patch do_once(:shoryuken) do begin ::Shoryuken.server_middleware do |chain| chain.add Shoryuken::Tracer end rescue StandardError => e Datadog::Tracer.log.error("Unable to apply Shoryuken integration: #{e}") end end end end end end end
Version data entries
26 entries across 26 versions & 2 rubygems