`framed_rails` ------------ `framed_rails` is a gem to add Framed instrumentation to your Rails 4 app. For each request, it sends an event to Framed. To use this in your Rails project: * Add `gem 'framed_rails', '~> 0.1.4'` to your Gemfile. * Add the following to `config/initializers/framed_rails.rb`: ```ruby require 'framed_rails' Framed.configure do |config| config[:api_key] = 'YOUR_FRAMED_API_KEY' end ``` If reporting fails, the exception will be logged to `Rails.logger` by default. Configuration -------------
Key | Description | Default |
---|---|---|
:consumer | The emitter to be used for reporting. See the Emitters section below. | `Framed::Emitters::Blocking` |
:user_id_controller_method | The name of a controller method which returns the user ID, if any | `framed_current_user_id` |
:logger | A Logger for reporting errors. | `Rails.logger` |
:anonymous_cookie | The name of the in signed cookie for anonymous user IDs. Long-lived anonymous user IDs are issued anonymous users. | `Framed::COOKIE_NAME` |
:user_id_controller_method | The name of a controller method which can provide the current User ID. (Also works with Devise). | 'framed_current_user_id' |
:include_xhr | Whether to include requests sent via AJAX. (Turbolinks are always included.) | false |