• Stars
    star
    9
  • Rank 1,879,675 (Top 39 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Crystal notifier for Airbrake

Airbrake Crystal

Build Status

Introduction

Airbrake Crystal is a Crystal notifier for Airbrake. Airbrake Crystal is currently in early development. Please, use and report bugs or share your ideas. The library provides minimalist API that enables the ability to send any Crystal exception to the Airbrake dashboard.

Installation

Add the library to Projectfile.

deps do
  github "kyrylo/airbrake"
end

Examples

require "airbrake"

Airbrake.configure do |config|
  config.project_id = 105138
  config.project_key = "fd04e13d806a90f96614ad8e529b2822"
  
  # Optionally set the endpoint
  config.endpoint = "http://something.private.com:8080"
end

begin
  1/0
rescue ex : DivisionByZero
  Airbrake.notify(ex)
end

puts 'Check your dashboard on https://app.airbrake.io'

Configuration

The main interface is Airbrake.configure.

Airbrake.configure do |config|
  # ...
end

To tweak values inline use the following API:

Airbrake.config.project_id = 105138

Config options

project_id & project_key

You must set both project_id & project_key.

To find your project_id and project_key navigate to your project's General Settings and copy the values from the right sidebar.

airbrake.configure do |config|
  config.project_id = 105138
  config.project_key = 'fd04e13d806a90f96614ad8e529b2822'
end

endpoint

You may set a custom endpoint

Airbrake.configure do |config|
  config.project_id = 105138
  config.project_key = "fd04e13d806a90f96614ad8e529b2822"
  config.endpoint = "http://something.private.com:8080"
end

API

Airbrake#notify

Sends an exception to Airbrake.

Airbrake.notify(Exception.new("App crashed!"))

More Repositories

1

pry-theme

An easy way to customize Pry colors via theme files
Ruby
169
star
2

system_browser_client

Ruby code browser
JavaScript
61
star
3

coursera-mathematical-thinking

TeX
39
star
4

pry-theme-collection

A collection of themes for Pry Theme plugin for Pry
Ruby
24
star
5

rbtree3

A fork of unmaintained https://github.com/skade/rbtree released as rbtree3 (because the name "rbtree2" is already occupied...)
C
13
star
6

fast_method_source

Retrieve methods' and procs' source and comments
C
11
star
7

entooru

Translations of random English articles about Ruby to Russian language
Ruby
7
star
8

linenoise-rb

A Ruby wrapper around the small self-contained alternative to Readline and Libedit called Linenoise (https://github.com/antirez/linenoise).
C
7
star
9

dot

My dotfiles.
Shell
6
star
10

system_navigation

A library that provides additional introspection capabilities for Ruby programs
Ruby
6
star
11

multitrap

Allows Signal.trap to execute multiple callbacks
Ruby
5
star
12

airbrake-rust

WIP
Rust
5
star
13

rmarshal

Decodes Ruby's Marshal.dump gibberish into orthodox Erlang
Erlang
4
star
14

system_browser_server

Ruby code browser (server)
Ruby
3
star
15

kyrylo.org

My personal website launched in August 2014
HTML
2
star
16

latest_ruby

Answers the question of what the latest Ruby version is. Knows about MRI, Rubinius, JRuby, MagLev and MacRuby.
Ruby
2
star
17

punchline

ะšะฐะบะพะน-ั‚ะพ ัะฐะนั‚.
Ruby
2
star
18

zsh-completion-subtle

Z Shell completion scripts for Subtle WM and its tools
2
star
19

passenger-airbrake

https://github.com/airbrake/airbrake/pull/472
Ruby
1
star
20

airbrake-dotnet

WIP
C#
1
star
21

introflection-ruby

Ruby
1
star
22

pry-profiler

Not ready. Work in progress
Ruby
1
star
23

colir

Colir means colour in Ukrainan. In Ruby it means HEX colour
Ruby
1
star
24

bash-completion-subtle

Bash completion scripts for Subtle WM and its tools
Shell
1
star
25

ruby-kag

King Arthur's Gold (KAG) API wrapper for Ruby
Ruby
1
star
26

already_awake

KDM4 theme with white background and red text.
1
star
27

artaius

King Arthur's Gold (KAG) IRC bot
Ruby
1
star
28

pixelate

Skin for Yakuake.
1
star
29

kyrylo.org-ansible

Ruby
1
star