Sha256: f00c04e263aaed66464aa0f58e19cdfc80cfabd1a63b8ce9738630419d8137f9
Contents?: true
Size: 785 Bytes
Versions: 44
Compression:
Stored size: 785 Bytes
Contents
# frozen_string_literal: true module Labkit module Middleware module Sidekiq # This is a wrapper around all the sidekiq server-middleware in labkit # The only middleware that needs to be added to the chain in GitLab-rails # # It uses a new `Sidekiq::Middleware::Chain` to string multiple middlewares # together. class Server def self.chain @chain ||= ::Sidekiq::Middleware::Chain.new do |chain| chain.add Labkit::Middleware::Sidekiq::Context::Server chain.add Labkit::Middleware::Sidekiq::Tracing::Server if Labkit::Tracing.enabled? end end def call(*args) self.class.chain.invoke(*args) do yield end end end end end end
Version data entries
44 entries across 44 versions & 1 rubygems