WrapEmit unable to handle error correctly
Closed this issue · 0 comments
TJ666 commented
When the status code of a request is incorrect,onFinished hook unable handle error correctly. Because of 'this' is not the true response.
if (this.statusCode > 400) {
span.errorOccurred();
}