{"id":22439555,"url":"https://github.com/oddcamp/rack-reqorder","last_synced_at":"2025-08-01T17:30:41.467Z","repository":{"id":32827919,"uuid":"36420937","full_name":"oddcamp/rack-reqorder","owner":"oddcamp","description":"Metrics, exception monitoring and request/response recording for rack apps","archived":false,"fork":false,"pushed_at":"2017-03-20T16:34:39.000Z","size":63,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-28T11:51:09.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/oddcamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-28T07:07:02.000Z","updated_at":"2019-09-12T18:18:41.000Z","dependencies_parsed_at":"2022-09-01T03:13:21.355Z","dependency_job_id":null,"html_url":"https://github.com/oddcamp/rack-reqorder","commit_stats":null,"previous_names":["kollegorna/rack-reqorder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oddcamp/rack-reqorder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddcamp%2Frack-reqorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddcamp%2Frack-reqorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddcamp%2Frack-reqorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddcamp%2Frack-reqorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddcamp","download_url":"https://codeload.github.com/oddcamp/rack-reqorder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddcamp%2Frack-reqorder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267512866,"owners_count":24099625,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-06T01:15:12.603Z","updated_at":"2025-08-01T17:30:41.163Z","avatar_url":"https://github.com/oddcamp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rack::Reqorder\nSimple gem for monitoring Rack apps. Uses MongoDB underneath.\n\nIntended to be used mostly on development and staging environments, mostly for APIs.\n\n## Introduction\nSimple gem that sits on top of Rack and:\n\n- monitors for exceptions and provides full details, like where it happened as well as the request details\n- records full requests/responses timelined, based on a header/header value\n- records request/response statistics\n\nEach functionality can be enabled/disabled by the embedded dashboard.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rack-reqorder'\n```\n\nAnd then execute:\n```\nbundle install\n```\n\n**For Rails 5.x you need to add Sinatra 2.x in your Gemfile to use the dashboard**\n\n```ruby\n  gem \"sinatra\", \"\u003e= 2.0.0.rc1\"\n```\n\n\n## Usage\nIf you don't already have Mongoid in your app, you first need to initialize it by running:\n\n```bash\nbundle exec rails g mongoid:config\n```\n\n**Then** just add `rack-reqorder` in the middleware pipeline and initialize it.\n\nFor instance, in Rails, in an initializer add:\n\n```ruby\nRack::Reqorder.configure do |config|\n  config.mongoid_yml = File.join(Rails.root, 'config', 'mongoid.yml')\nend\n\nRack::Reqorder.boot!\n\n#if you run on development mode\nRails.application.config.middleware.insert_after(ActionDispatch::DebugExceptions , Rack::Reqorder::Logger)\n#or if run on production\n#Rails.application.config.middleware.insert_after(0, Rack::Reqorder::Logger)\n```\nThen in routes.rb enable the little dashboard:\n```ruby\n  mount Rack::Reqorder::Monitor::Web::Application =\u003e '/rack-reqorder'\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment. \n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/kollegorna/rack-reqorder/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddcamp%2Frack-reqorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddcamp%2Frack-reqorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddcamp%2Frack-reqorder/lists"}