{"id":23082487,"url":"https://github.com/itmlabs/exceptiontrap","last_synced_at":"2025-10-06T09:30:41.057Z","repository":{"id":2159481,"uuid":"3105086","full_name":"itmLABS/exceptiontrap","owner":"itmLABS","description":"Exceptiontrap – Error Monitoring for Ruby on Rails","archived":false,"fork":false,"pushed_at":"2021-05-28T14:16:01.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T21:42:55.464Z","etag":null,"topics":["error-monitoring","rails","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://exceptiontrap.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itmLABS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-04T20:31:44.000Z","updated_at":"2022-05-29T11:30:43.000Z","dependencies_parsed_at":"2022-09-17T11:02:30.376Z","dependency_job_id":null,"html_url":"https://github.com/itmLABS/exceptiontrap","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmLABS%2Fexceptiontrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmLABS%2Fexceptiontrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmLABS%2Fexceptiontrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itmLABS%2Fexceptiontrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itmLABS","download_url":"https://codeload.github.com/itmLABS/exceptiontrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235515428,"owners_count":19002481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-monitoring","rails","ruby","ruby-on-rails"],"created_at":"2024-12-16T14:53:20.327Z","updated_at":"2025-10-06T09:30:35.773Z","avatar_url":"https://github.com/itmLABS.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/exceptiontrap.svg)](https://badge.fury.io/rb/exceptiontrap)\n[![Maintainability](https://api.codeclimate.com/v1/badges/54bdf2c81f42aac11680/maintainability)](https://codeclimate.com/github/itmLABS/exceptiontrap/maintainability)\n\n# Exceptiontrap\n\nThis gem is used to catch and report your Ruby on Rails applications errors and exceptions to the [Exceptiontrap](https://exceptiontrap.com) webservice.\n\nThe gem is compatible with Rails \u003e= 3 (yes, including Rails 7)\n\n## Setup\n\n### 1. Install\n\nInstall the Exceptiontrap gem by putting this line to your `Gemfile`\n\n    gem 'exceptiontrap'\n\nthen run `bundle`\n\n### 2. Configure\n\nNow generate the `config/exceptiontrap.yml` file with\n\n    rails generate exceptiontrap --api-key YOUR_API_KEY\n\nand you should be fine.\n\n**Note:** Some exceptions are ignored by default, e.g. `RoutingError` and `RecordNotFound` errors. You can change this behavior in the `config/exceptiontrap.yml` file that we just generated.\n\n## Information / Further Configuration\n\nYou can find your API-Key by logging in to your [Exceptiontrap Account](https://exceptiontrap.com/login). Select the application, and follow the `Setup` link.\n\n## Integration with Background Jobs and Workers\n\n### Sidekiq\n\nExceptiontrap catches [Sidekiq](http://sidekiq.org) errors automatically. You don't have to set up anything. Easy, right?\n\n### DelayedJob\n\nThere is no automatic integration into [DelayedJob](https://github.com/collectiveidea/delayed_job) yet. Meanwhile you can let Exceptiontrap notifiy you about errors using its `notify` method inside DelayedJob's `error` hook.\n\n```ruby\nclass ParanoidNewsletterJob \u003c NewsletterJob\n  # ...\n\n  def error(job, exception)\n    Exceptiontrap.notify(exception, custom_controller: job.class.name)\n  end\nend\n```\n\n### Resque\n\nThere is no automatic integration into [Resque](https://github.com/resque/resque) yet. Meanwhile you can let Exceptiontrap notifiy you about errors using its `notify` method inside Resque's `on_failure` hook.\n\nYou can also create a module with Exceptiontrap enabled and integrate it.\n\n```ruby\nmodule ExceptiontrapJob\n  def on_failure(exception, *args)\n    Exceptiontrap.notify(exception, args)\n  end\nend\n\nclass MyJob\n  extend ExceptiontrapJob\n  def self.perform(*args)\n    ...\n  end\nend\n```\n\n## License\n\nCopyright (c) 2021 [Torsten Bühl], released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitmlabs%2Fexceptiontrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitmlabs%2Fexceptiontrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitmlabs%2Fexceptiontrap/lists"}