Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

errordite

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

errordite

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Errordite

A ruby client for https://www.errordite.com

Adding errordite to your application

There are different gems for general, rack, and rails applications, so add either errordite, errordite-rack or errordite-rails to your Gemfile and reinstall the bundle.

For rails applications, errordite will automatically be added to capture and log all errors thrown during a request. For rack applications, you'll need to explicitly add rack middleware, adding something like this to your config.ru file:

use Errordite::Rack

Setting the errordite api token

Errordite uses a unique api token to identify users, and you'll need to set this before it can record errors. This can be done in one of two ways. The first (and preferred method) is to set the environment variable ERRORDITE_TOKEN with your API key. If this isn't possible you can also directly set Errordite.config.api_key.

Using errordite-rail or adding the Errordite::Rack middleware will capture errors that occur during a request to your application, but it's also useful to capture errors that happen outside a web process. An example might be errors from a job queue or similar. This is easy to achieve, using Errordite.monitor(&block). e.g.:

Errordite.monitor do
  ErrorProneQueue.process_next_job
end

FAQs

Package last updated on 14 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc