Sha256: 27b8277f7850fd8f75828b3ea9d4c6d88678765c176dfefc950bb8fe388680d8
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
module Sentry class RequestInterface def from_rack(env_hash) req = ::Rack::Request.new(env_hash) if Sentry.configuration.send_default_pii self.data = read_data_from(req) self.cookies = req.cookies else # need to completely wipe out ip addresses IP_HEADERS.each { |h| env_hash.delete(h) } end self.url = req.scheme && req.url.split('?').first self.method = req.request_method self.query_string = req.query_string self.headers = format_headers_for_sentry(env_hash) self.env = format_env_for_sentry(env_hash) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sentry-ruby-4.1.2 | lib/sentry/rack/interface.rb |
sentry-ruby-4.1.1 | lib/sentry/rack/interface.rb |
sentry-ruby-4.1.0 | lib/sentry/rack/interface.rb |