Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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|
...
end

Rollbar::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)