airbrake 0.1.0

Airbrake Rust is an Airbrake (https://airbrake.io) notifier library for the Rust Programming language. The library provides minimalist API that enables the ability to send Rust errors to the Airbrake dashboard.
Documentation

Airbrake Rust

Build Status

*/!\ The project is in the alpha stage /!*

Introduction

Airbrake Rust is an Airbrake notifier library for the Rust Programming language. The library provides minimalist API that enables the ability to send Rust errors to the Airbrake dashboard.

Key features

  • Uses the new Airbrake JSON API (v3)[link]
  • Simple, consistent and easy-to-use library API[link]
  • Awesome performance (check out our benchmarks)[link
  • Asynchronous error reporting[link]
  • Logging support via env_logger[link]
  • Support for proxying[link]
  • Support for environments[link]
  • Filters support (filter out sensitive or unwanted data that shouldn't be sent)[link]
  • Ability to ignore errors based on any condition[link]
  • SSL support (all communication with Airbrake is encrypted by default)

Installation

Cargo

Add the crate to your Cargo.toml:

[dependencies]
airbrake = "0.1"

Examples

Basic example

This is the minimal example that you can use to test Airbrake Rust with your project:

extern crate airbrake;

use std::num::ParseIntError;

fn main() {
    let airbrake = airbrake::configure(|config| {
        config.project_id = 113743;
        config.project_key = "81bbff95d52f8856c770bb39e827f3f6".to_owned();
    });

    match double_number("NOT A NUMBER") {
        Ok(n) => assert_eq!(n, 20),
        Err(err) => airbrake.notify_sync(err)
    }
}