Sha256: 1f3e9a06e192401adf6e7046f76319140ada19a82e66c644c34cc88d66c0f7f7
Contents?: true
Size: 785 Bytes
Versions: 45
Compression:
Stored size: 785 Bytes
Contents
# frozen_string_literal: true module Labkit module Middleware module Sidekiq # This is a wrapper around all the sidekiq client-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 Client def self.chain @chain ||= ::Sidekiq::Middleware::Chain.new do |chain| chain.add Labkit::Middleware::Sidekiq::Context::Client chain.add Labkit::Middleware::Sidekiq::Tracing::Client 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
45 entries across 45 versions & 1 rubygems