Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8742941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:35:21+00:00 2026-06-13T11:35:21+00:00

Heroku adds a HTTP header called X-Request-Start. Its a unix timestamp. I have a

  • 0

Heroku adds a HTTP header called X-Request-Start. Its a unix timestamp.

I have a Rails 3.2 application at Heroku and want to log response time for HTTP requests.

Whats the latest point of possible integration in Rails to do:

start = Time.at(env['HTTP_X_REQUEST_START'].to_f / 1000.0).utc
response_time = Time.now.utc - start

I’m thinking of implementing a Rack middleware to calculate the response time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:35:21+00:00Added an answer on June 13, 2026 at 11:35 am

    Are you aware that Heroku already logs your response time? In your terminal do heroku logs -t --app your-app-name and you’ll see service=xxxms which is the number of miliseconds each request takes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Heroku Cedar stack for my Rails application, and I want it to
I'm using Heroku and would like to have a script (on another server) called
So I have two heroku apps: http://production-app.com (mapped from http://production-app.heroku.com ) http://development-app.heroku.com On production-app.com
My Heroku app had its shared database upgraded automatically to the dev plan. I
I have a Heroku e-commerce site I'm building, and have the Piggyback ssl installed
I'm using Heroku, and have added a couple custom domains for my app, i.e.
check this out http://heroku.com/ How do you created stuff like this?(referring to the slidedown)
I've just deployed a commit to Heroku which adds a portfolio field to my
I have an app on heroku which scrapes pricing data off a website and
I have a django app running on heroku. I would like to run my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.