No commit activity in last 3 years
No release in over 3 years
Rack::ProcessName is rack middleware to set the ruby process name to whatever request is currently being processed.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.9.0
 Project Readme

Rack::ProcessName

Set the process name to what request is currently being processed. If you're lucky and your OS shows process name changes, you'll see something like:

15696 ttys001    0:07.04 script/rails S GET http://localhost:3000/servers/localhost/edit   

The letter before the request method means:

  • R - running
  • S - sleeping (last response was ok)
  • E - error (last response raised an exception)

Installation

In Rails, just add to your Gemfile:

gem 'rack-process-name'

the gem will include itself as middleware.

If in Sinatra or using config.ru:

require 'rack-process-name'
use Rack::ProcessName