SkyAPM / SkyAPM-nodejs

The NodeJS server side agent for Apache SkyWalking
Apache License 2.0
128 stars 86 forks source link

Move end of http request span to correct location. #131

Closed jasper-zsh closed 4 years ago

jasper-zsh commented 4 years ago

Currently the end of http request span is in wrong location, it ends immediately after ClientRequest instance created; The http span should contain the whole request, ends after the response is fully transfered. So I move it to "end" event of the response.