Sha256: 4ffc4085448a2ebb1d91de194b5f30c02b16206c674295d9ac6bafe315cf879b

Contents?: true

Size: 140 Bytes

Versions: 5

Compression:

Stored size: 140 Bytes

Contents

module SidekiqMiddlewares
  class MdcCleaner
    def call(*_args)
      Logging.mdc.clear if defined? Logging
      yield
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sidekiq_middlewares-0.3.3 lib/sidekiq_middlewares/mdc_cleaner.rb
sidekiq_middlewares-0.3.2 lib/sidekiq_middlewares/mdc_cleaner.rb
sidekiq_middlewares-0.3.1 lib/sidekiq_middlewares/mdc_cleaner.rb
sidekiq_middlewares-0.3.0 lib/sidekiq_middlewares/mdc_cleaner.rb
sidekiq_middlewares-0.2.0 lib/sidekiq_middlewares/mdc_cleaner.rb