Automatically captured data

Bugflux will automatically capture some meaningful data to help you diagnose root cause of errors occurring in your application. A basic exception backtrace and a few other metrics are automatically sent to all collaborators of the project (including clients) via email. Bugflux applies some intelligence based on your framework and programming language to provide a highly detailed view of errors as well. This data can be viewed on the Bugflux dashboard for the application.

Following data is automatically available on Bugflux dashboard:

  1. An overview of the exception giving out details like URL, file and line number where the error occurred, error message, controller, action, IP address of the request and browser information.
  2. A complete and intelligently formatted stacktrace.
  3. Request parameters.
  4. Session data.
  5. Headers.
  6. All occurrences of the exception along with the time of occurrence.
  7. Special information for errors occurring in jobs running in DelayedJob.

Customizing the dashboard with more information.

There will be times when you will be interested in more specific information to debug the errors. Like, the logged-in user's email in your database. You can send and view more customized information like this on Bugflux dashboard based on your needs. Bugflux provides a hook where you can add custom tabs to Bugflux dashboard.

class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  include ::AppfluxRuby::Rails::ControllerMethods 

  before_bugflux_notify :add_user_info 

  private def add_user_info(notifier)
    notifier.add_tab('User Info', { name: current_user.full_name, email: current_user.email })
  end
end
      
Custom tab

Note For Developers

before_bugflux_notify works exactly like Rails' before_action. Make sure you call before_bugflux_notify before the code that generates the exception.