Sha256: 395f0bafa3b5d4172222a5d701235efa727b82cf1d7a862dc784434ae1af3717

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

class Memolog::SentrySidekiqMiddleware
  def call(*)
    Memolog.run do
      yield
    rescue => error
      memolog_dump = Memolog.dump
      Sentry.set_extras(Memolog.config.sentry_key => memolog_dump) if memolog_dump
      raise error
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
memolog-0.2.2 lib/memolog/sentry_sidekiq_middleware.rb
memolog-0.2.1 lib/memolog/sentry_sidekiq_middleware.rb
memolog-0.2.0 lib/memolog/sentry_sidekiq_middleware.rb
memolog-0.1.0 lib/memolog/sentry_sidekiq_middleware.rb