Skip to content

Commit

Permalink
Explaninig what is ActionDispatch::RequestId and Rails::Rack::Logger …
Browse files Browse the repository at this point in the history
…in the README
  • Loading branch information
jmonteiro committed Apr 27, 2012
1 parent 0ceb574 commit 23756c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ An api application comes with the following middlewares by default.
* *Rack::Cache*: Caches responses with public *Cache-Control* headers using HTTP caching semantics.
* *Rack::Sendfile*: Uses a front-end server's file serving support from your Rails application.
* *Rack::Lock*: If your application is not marked as threadsafe (`config.threadsafe!`), this middleware will add a mutex around your requests.
* *ActionDispatch::RequestId*
* *Rails::Rack::Logger*
* *ActionDispatch::RequestId*: Makes a unique request id available, sending the id to the client via the X-Request-Id header. The unique request id can be used to trace a request end-to-end and would typically end up being part of log files from multiple pieces of the stack.
* *Rails::Rack::Logger*: Log the request started and flush all loggers after it.
* *Rack::Runtime*: Adds a header to the response listing the total runtime of the request.
* *ActionDispatch::ShowExceptions*: Rescue exceptions and re-dispatch them to an exception handling application.
* *ActionDispatch::DebugExceptions*: Log exceptions.
Expand Down

0 comments on commit 23756c6

Please sign in to comment.