question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detailed response time metrics with time: true

See original GitHub issue

Hello,

Is it possible to add time: true parameter to request? For example in beforeRequest custom script or any other way?

It’ll help to be more confident in response time statistics and get more details

according to Request library docs: timingPhases Contains the durations of each request phase. If there were redirects, the properties reflect the timings of the final request in the redirect chain:

  • wait: Duration of socket initialization (timings.socket)
  • dns: Duration of DNS lookup (timings.lookup - timings.socket)
  • tcp: Duration of TCP connection (timings.connect - timings.socket)
  • firstByte: Duration of HTTP server response (timings.response - timings.connect)
  • download: Duration of HTTP download (timings.end - timings.response)
  • total: Duration entire HTTP round-trip (timings.end)
request.get({
  url : 'http://example.com',
  time : true
},function(err, response){
  console.log('Request time in ms', response.elapsedTime);
});

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hassycommented, Dec 3, 2021

Yes @dominikstohl, they should show up in the report too. If not, please file a bug. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Types of Response Time Metrics and How To Measure It
In this article, we define response time testing, show you how to measure it and explore various types of response time testing.
Read more >
Response Time Testing – How to Measure for API? - Guru99
1. Method of calculating metrics gathered by each API response time test tool. 2. Tools Simulate the load and capture speed which can...
Read more >
Response Time Limits: Article by Jakob Nielsen
The 3 main response time limits are determined by human perceptual abilities. ... For reasonably fast operations, taking between 2 and 10 seconds,...
Read more >
Page Load Time vs. Response Time - What Is the Difference?
Page load time and response time are key metrics to monitor, and they can give you an in-depth understanding of how your website...
Read more >
Why response times are often measured incorrectly - Dynatrace
In virtualized and cloud environments they are the most accurate performance metric you can get. Very often, however, people measure and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found