Sha256: 7b77b87ab0a32fa6a663146ca2153e759d38ba1cec23821d06828cd54f43ff37

Contents?: true

Size: 317 Bytes

Versions: 12

Compression:

Stored size: 317 Bytes

Contents

module Sentry
  module Rails
    module InstrumentPayloadCleanupHelper
      IGNORED_DATA_TYPES = [:request, :response, :headers, :exception, :exception_object]

      def cleanup_data(data)
        IGNORED_DATA_TYPES.each do |key|
          data.delete(key) if data.key?(key)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sentry-rails-4.7.2 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.7.1 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.7.0 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.6.5 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.6.4 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.6.3 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.6.2 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.6.1 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.6.0 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.6.0.pre.beta.0 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.5.2 lib/sentry/rails/instrument_payload_cleanup_helper.rb
sentry-rails-4.5.1 lib/sentry/rails/instrument_payload_cleanup_helper.rb