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-1.3.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.2.1 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.2.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.1.0 lib/mnemosyne/probes/sidekiq/server.rb
mnemosyne-ruby-1.1.0.rc1 lib/mnemosyne/probes/sidekiq/server.rb