Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

A Redmine plugin which enables it to receive application error notifications Airbrake-style

Notifications You must be signed in to change notification settings

milgner/redmine_airbrake_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airbrake Server for Redmine

An implementation of the Airbrake (formerly known as Hoptoad) protocol v2 for Redmine which automatically creates issues from notices submitted from your applications notifier. Inspired by and loosely based on the Hoptoad server by Jan Schulz-Hofen

Installation

Install the hpricot gem, then install the plugin into Redmine as usual. Now go to Administration -> Settings -> Incoming emails and, if neccessary, check Enable WS for incoming emails and generate an API key. This is the key you will need in the next step to configure your notifier.

Client-Configuration

For a Rails application, just setup the Airbrake notifier as usual, then modify config/initializers/airbrake.rb according to your needs using this template:

HoptoadNotifier.configure do |config|
  config.api_key = {:project => 'redmine_project_identifier',    # the identifier you specified for your project in Redmine
                    :tracker => 'Bug',                           # the name of your desired tracker
                    :api_key => 'redmine_api_key',               # the key you generated in the previous step
                    :category => 'Development',                  # the name of a ticket category, optional
                  	:fixed_version_id => 25,                     # the default version, optional
                    :assigned_to => 'admin',                     # the login of a user the ticket should get assigned to by default, optional
                    :login => 'airbrake',                        # the login who should be displayed as author of the tickets. Defaults to anonymous.
                    :reopen_strategy => 'production',            # will only reopen if the error occurs on the specified environment. Defaults to all, optional.
                    :priority => 5                               # the default priority (use id instead of name, optional.)
                   }.to_yaml
  config.host = 'my_redmine_host.com'                            # the hostname your Redmine runs at
  config.port = 443                                              # the port your Redmine runs at
  config.secure = true                                           # sends data to your server using SSL, optional
end

Note: as of version 0.2, it is possible to specify defaults for all settings except :project and :api_key on the server using the web interface. Settings supplied by the client will take precedence however.

That's it. You may run rake airbrake:test to generate a test issue. If it doesn't work, check your logs and configuration, then submit an issue on Github

License

This plugin is licensed under the Apache license 2.0

Author

Written by Marcus Ilgner (mail@marcusilgner.com)

Flattr this

About

A Redmine plugin which enables it to receive application error notifications Airbrake-style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages