Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ragurney/rollbar-user_informer
Show exception ids on error pages for easier support
https://github.com/ragurney/rollbar-user_informer
middleware rails rollbar
Last synced: 23 days ago
JSON representation
Show exception ids on error pages for easier support
- Host: GitHub
- URL: https://github.com/ragurney/rollbar-user_informer
- Owner: ragurney
- License: mit
- Created: 2018-03-05T18:34:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T21:38:42.000Z (over 6 years ago)
- Last Synced: 2024-04-23T19:24:48.135Z (7 months ago)
- Topics: middleware, rails, rollbar
- Language: Ruby
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Shows exception uuids and links to them on error pages for easier support
![example](assets/example.png)
Install
=======```Bash
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 ``).Usage
=====
```ruby
# Gemfile
gem 'rollbar-user_informer'# config/initializers/rollbar.rb
Rollbar.configure do |config|
...
endRollbar::UserInformer.user_information = <<~HTML
View error {{error_uuid}} on Rollbar
HTML
```
```html
# public/500.html
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
```Author
======
[Ryan Gurney](https://github.com/ragurney)
[email protected]
License: MIT
[![Build Status](https://travis-ci.org/ragurney/rollbar-user_informer.svg?branch=master)](https://travis-ci.org/ragurney/rollbar-user_informer)