Sha256: 3844d978b2d3c213f41a6070fe7641b9efd4939a8a0eee9d06462961a2f7e527

Contents?: true

Size: 231 Bytes

Versions: 16

Compression:

Stored size: 231 Bytes

Contents

module Appsignal
  module Middleware
    class DeleteBlanks
      def call(event)
        event.payload.each do |key, value|
          event.payload.delete(key) if value.blank?
        end
        yield
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
appsignal-0.6.7 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.6 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.5 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.4 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.3 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.3.beta.3 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.3.beta.2 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.3.beta.1 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.2 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.1 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.0.beta.2 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.6.0.beta.1 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.5.5 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.5.3 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.5.1 lib/appsignal/middleware/delete_blanks.rb
appsignal-0.5.0 lib/appsignal/middleware/delete_blanks.rb