Class | Airbrake::Rack::NoticeBuilder |
In: |
lib/airbrake/rack/notice_builder.rb
|
Parent: | Object |
A helper class for filling notices with all sorts of useful information coming from the Rack environment.
HTTP_HEADER_PREFIXES | = | [ 'HTTP_'.freeze, 'CONTENT_TYPE'.freeze, 'CONTENT_LENGTH'.freeze |
@return [Array<String>] the prefixes of the majority of HTTP headers
in
Rack (some prefixes match the header names for simplicity) |
builders | [R] | @return [Array<Proc>] the list of notice builders |
Adds context, session, params and other fields based on the Rack env.
@param [Exception] exception @return [Airbrake::Notice] the notice with extra information