A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Octo-Labs/heroku-request-id below:

Octo-Labs/heroku-request-id: Simple Rack middleware to log the heroku request id and write it to the end of html requests. Both optionally, of course.

Simple Rack middleware to log the heroku request id and write it to the end of html requests. Both optionally, of course.

Add this line to your application's Gemfile:

And then execute:

Or install it yourself as:

$ gem install heroku-request-id

By default the gem will print a log line to the Heroku logs containing the request id and the elapsed time taken processing the request. You can disable the log line by putting this in an initializer.

  HerokuRequestId::Middleware.log_line = false

You can configure the gem to add a comment to the beginning of html requests by adding this to an initializer.

  HerokuRequestId::Middleware.html_comment = true

You can also configure the gem to copy the HTTP_HEROKU_REQUEST_ID header, which is set by heroku, into the HTTP_X_REQUEST_ID header, which is used by ActionDispatch:: RequestId.

  HerokuRequestId::Middleware.x_request_id_replication = true
  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4