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.

Methods

Constants

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)

Attributes

builders  [R]  @return [Array<Proc>] the list of notice builders

Public Class methods

Adds user defined builders to the chain.

@param [Hash{String=>Object}] rack_env The Rack environment

Public Instance methods

Adds context, session, params and other fields based on the Rack env.

@param [Exception] exception @return [Airbrake::Notice] the notice with extra information

[Validate]