GithubHelp home page GithubHelp logo

eras's Introduction

Eras

Error reporting services such as Bugsnag, Honeybadger, and Sentry are great, but they oftentimes leave us scratching our heads while developing locally. You're most likely not sending the errors in development environment, but the notifier caught it anyways, and now it's gone, poof, missing. Eras takes advantage of Rails 7.0's ActiveSupport::ErrorReporter, and adds an additional subscriber to Rails.error.

Because this hooks into ErrorReporter, you must be using the reporter API for tracking your errors. This may be a change to how you report errors, but both Sentry's and Honeybadger's libraries provide native subscribers that you can use, and writing a custom subscriber for other providers isn't too hard.

Index

Index

Show

Show

Installation

Add this line to your application's Gemfile:

gem "eras", group: :development

And then execute:

$ bundle

mount the engine wherever you like (I prefer /eras)

# config/routes.rb
mount Eras::Engine => "/eras" if defined?(Eras::Engine) # We only require this in development

Disclaimer

This gem is in active development, and delivered as-is.

Contributing

You must run the tailwindcss server while developing, and commit any changes to app/assets/builds

rake app:tailwind_engine_watch

The gem is available as open source under the terms of the MIT License.

eras's People

Contributors

bobbymcwho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

eras's Issues

Don't auto-register the error handler

By auto registering the handler, we don't allow users to configure the behavior.

Things that may want to configure:

  • Backtrace filter: proc that lets users filter out backtrace lines that aren't useful to them
  • Adapter: Right now we write to the tmp/eras/errors.json file. Would we want to support a sqlite or redis adapter?

Add time stamps

Human readable x minutes ago would be nice to display in the UI, we need time stamps for that

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.