Appygram http://www.appygram.com - for Rails 3
Appygram is a messaging service for web and mobile apps.
This Gem/Plugin is for Rails applications. It will send uncaught exception reports (server error pages / "500 errors") to the Appygram trace service, which will count them and send notifications as appropriate.
-
Add the appygram-rails gem entry to your Gemfile
gem 'appygram-rails'
-
Run
bundle install
-
Configure your API Key. If you will use Appygram in both development and production, you can put it in an initializer, e.g.
config/initializers/appygram.rb
. Otherwise, just put it inconfig/environments/production.rb
:Appygram.configure :api_key => 'your_api_key'
Use a valid API key for your app provided by Appygram.
-
A restart is required to pick up new gems and configuration.
To properly route messages about exception traces, you will probably want to at least set the default topic to some topic name configured in your Appygram dashboard:
Appygram.configure :topic => 'Uncaught Exception'
For more configuration options, see the instructions for the core Appygram gem: https://github.com/anythinglabs/appygram.rb
You can also read there about how to programmatically call Appygram to send user-generated messages or rescued exceptions.
If an exception occurs within any Rails controller that responds to "current_user", this gem will auto-fill the "name" and "email" properties of the trace with the associated properties of current_user.
The current request context, including URI, parameters, and headers, is serialized into the app_json field of the trace.
Copyright © 2012 Solertium.