Hi @niklasbae,
You canโt (atm) get the timings for the intermediate redirects in the script (apart from disabling redirects and following them in the code). This could be an interesting addition, feel free to open an issue .
They are still emitted as separate metrics for each redirect so if you want the values separately you can just add a tag to the request you want to filter later on (technically you will have the url
tag which should be sufficient ).
If you want one metric that combines all of them โฆ yeah either add another group (it could just be inside the current group you have) or you can use time.Now():
let start = Date.now();
let res = http.get("https://httpbin.org/redirect/5");
console.log(Date.now() - start);
console.log(res.timings.duration);
which outputs
INFO[0002] 1834
INFO[0002] 160.837719