Closed kevinmstephens closed 7 years ago
responseTime should represent the difference between request received and response sent.
responseTime
Currently, when a tail is used and log event is tail then responseTime includes the time taken for the tail to complete.
tail
https://github.com/hapijs/good/blob/master/lib/utils.js#L71
Recommend changing to this.responseTime = request.info.responded || Date.now() - request.info.received;
this.responseTime = request.info.responded || Date.now() - request.info.received;
I'll take a PR.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
responseTime
should represent the difference between request received and response sent.Currently, when a tail is used and log event is
tail
thenresponseTime
includes the time taken for the tail to complete.https://github.com/hapijs/good/blob/master/lib/utils.js#L71
Recommend changing to
this.responseTime = request.info.responded || Date.now() - request.info.received;