Sha256: e247c7c725508f456fec30b2bcccd86e21c4abf4ed76606487e6441e6f1de415

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

require_relative 'tracer'

module Datadog
  module Tracing
    module Contrib
      module Shoryuken
        # Patcher enables patching of 'shoryuken' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::Shoryuken.server_middleware do |chain|
              chain.add Shoryuken::Tracer
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/tracing/contrib/shoryuken/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/shoryuken/patcher.rb