Coder Social home page Coder Social logo

iloveitaly / raven-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getsentry/sentry-ruby

0.0 3.0 0.0 1.42 MB

Raven is a Ruby client for Sentry (getsentry.com)

Home Page: htps://www.getsentry.com

License: Apache License 2.0

Ruby 99.82% Makefile 0.18%

raven-ruby's Introduction

Raven-Ruby

Gem Version Build Status

A client and integration layer for the Sentry error reporting API.

Requirements

We test on Ruby MRI 1.8.7/REE, 1.9.3, 2.0, 2.1 and 2.2. JRuby support is experimental - check TravisCI to see if the build is passing or failing.

Getting Started

Install

gem "sentry-raven" #, :github => "getsentry/raven-ruby"

Set SENTRY_DSN

# Set your SENTRY_DSN environment variable.
export SENTRY_DSN=http://public:[email protected]/project-id
# Or you can configure the client in the code (not recommended - keep your DSN secret!)
Raven.configure do |config|
  config.dsn = 'http://public:[email protected]/project-id'
end

Call

If you use Rails, you're already done - no more configuration required! Check Integrations for more details on other gems Sentry integrates with automatically.

Otherwise, Raven supports two methods of capturing exceptions:

Raven.capture do
  # capture any exceptions which happen during execution of this block
  1 / 0
end

begin
  1 / 0
rescue ZeroDivisionError => exception
  Raven.capture_exception(exception)
end

More Information

Full documentation and more information on advanced configuration, sending more information, scrubbing sensitive data, and more can be found on the wiki.

raven-ruby's People

Contributors

dcramer avatar nateberkopec avatar coderanger avatar vbrendel avatar seanlinsley avatar jfirebaugh avatar greysteil avatar codekitchen avatar huntrax11 avatar mitsuhiko avatar eugeneius avatar pcorliss avatar eagletmt avatar zarqman avatar hmarr avatar cobyism avatar javawizard avatar ggarnier avatar vangberg avatar lucasmazza avatar mattrobenolt avatar twelvelabs avatar kratob avatar lsb avatar iain avatar weynsee avatar teodor-pripoae avatar plantfansam avatar pkuczynski avatar msaffitz avatar

Watchers

Michael Bianco avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.