Sha256: 7d0a295cdcf7331be22243ad9551ada3d907ab06905e71939f4c867f6c9310ca

Contents?: true

Size: 466 Bytes

Versions: 31

Compression:

Stored size: 466 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 target_version
          Integration.version
        end

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

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.51.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.50.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.49.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.48.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.47.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.46.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.45.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.44.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.43.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.42.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.41.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ls-trace-0.2.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.40.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.39.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.38.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.37.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.36.0 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.35.2 lib/ddtrace/contrib/shoryuken/patcher.rb
ddtrace-0.35.1 lib/ddtrace/contrib/shoryuken/patcher.rb