Sha256: e342987ede5fff42117c683e930640faf24d7a2bcde468df152ddf816eeb4b27

Contents?: true

Size: 543 Bytes

Versions: 60

Compression:

Stored size: 543 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class Shoryuken < Activator
      def can_instrument?
        defined?(::Shoryuken) && ::Shoryuken.respond_to?(:configure_server)
      end

      def instrument
        require 'instana/instrumentation/shoryuken'

        ::Shoryuken.configure_server do |config|
          config.server_middleware do |chain|
            chain.add ::Instana::Instrumentation::Shoryuken
          end
        end

        true
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
instana-1.202.0 lib/instana/activators/shoryuken.rb
instana-1.201.0 lib/instana/activators/shoryuken.rb
instana-1.201.0.pre1 lib/instana/activators/shoryuken.rb
instana-1.200.0 lib/instana/activators/shoryuken.rb
instana-1.200.0.pre1 lib/instana/activators/shoryuken.rb
instana-1.199.6 lib/instana/activators/shoryuken.rb
instana-1.199.5 lib/instana/activators/shoryuken.rb
instana-1.199.4 lib/instana/activators/shoryuken.rb
instana-1.199.3 lib/instana/activators/shoryuken.rb
instana-1.199.2 lib/instana/activators/shoryuken.rb
instana-1.199.1 lib/instana/activators/shoryuken.rb
instana-1.199.0 lib/instana/activators/shoryuken.rb
instana-1.198.0 lib/instana/activators/shoryuken.rb
instana-1.198.0.pre1 lib/instana/activators/shoryuken.rb
instana-1.197.0 lib/instana/activators/shoryuken.rb
instana-1.197.0.pre2 lib/instana/activators/shoryuken.rb
instana-1.197.0.pre1 lib/instana/activators/shoryuken.rb
instana-1.195.4 lib/instana/activators/shoryuken.rb
instana-1.195.3 lib/instana/activators/shoryuken.rb
instana-1.195.2 lib/instana/activators/shoryuken.rb