Sha256: 69df0b691e910bff2d7fbcf2bab3834b9a1b4ef8b9b0fe611612189102bf4b4a

Contents?: true

Size: 546 Bytes

Versions: 25

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

module Mnemosyne
  module Probes
    module Sidekiq
      module Server
        class Probe < ::Mnemosyne::Probe
          def setup
            require 'mnemosyne/middleware/sidekiq'

            ::Sidekiq.configure_server do |config|
              config.server_middleware do |chain|
                chain.prepend ::Mnemosyne::Middleware::Sidekiq
              end
            end
          end
        end
      end
    end

    register 'Sidekiq::Worker', 'sidekiq/worker', Sidekiq::Server::Probe.new
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mnemosyne-ruby-2.0.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.17.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.16.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.15.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.14.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.13.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.12.1 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.12.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.11.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.10.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.10.0.beta1 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.9.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.8.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.7.1 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.7.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.6.2 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.6.1 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.5.1 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.5.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.4.0 lib/mnemosyne/probes/sidekiq/server.rb