No commit activity in last 3 years
No release in over 3 years
show exception ids on error pages for easier support
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.15
 Project Readme

Shows exception uuids and links to them on error pages for easier support

example

Install

gem install rollbar-user_informer

Details

  • Adds rack middleware Rollbar::UserInformer::Middleware that inserts a link to Rollbar in error pages.
  • Allows customization of error message with Rollbar::UserInformer.user_information (replaces {{error_uuid}} with the error uuid from Rollbar.)
  • Allows customizing error page placeholder Rollbar::UserInformer.user_information_placeholder, must match what is on the error page (default is <!-- ROLLBAR ERROR -->).

Usage

# Gemfile
gem 'rollbar-user_informer'

# config/initializers/rollbar.rb
Rollbar.configure do |config|
...
end

Rollbar::UserInformer.user_information = <<~HTML
  <br/><br/>
  <a href="#{Rollbar.notifier.configuration.web_base}/instance/uuid?uuid={{error_uuid}}">
    View error {{error_uuid}} on Rollbar
  </a>
HTML
# public/500.html
<body>
  <div class="dialog">
    <h1>We're sorry, but something went wrong.</h1>
  </div>
  <p>
    If you are the application owner check the logs for more information.
    <!-- ROLLBAR ERROR -->
  </p>
</body> 

Author

Ryan Gurney
ryan.a.gurney@gmail.com
License: MIT
Build Status