aunsy-com opened a new issue, #11583: URL: https://github.com/apache/skywalking/issues/11583
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues. ### Apache SkyWalking Component NodeJS Server Side Agent (apache/skywalking-nodejs) ### What happened when sending http request in my nodejs project,I need to set http request header Connection: close,the trace log will be sent to skyworking. I think the problem is in function HttpPlugin.prototype.interceptClientRequest: 1. wrapEmit(span, req, true, 'close'): when http request header Connection: keep-alive, the "close" event will not be emitted 2. wrapEmit(span, res, false): this line change to wrapEmit(span, res, false, 'end') , the trace log will be sent to skyworking too ### What you expected to happen I don't want to set http request header Connection: close, and the trace log will be sent to skyworking ### How to reproduce 1. Setting http request header Connection: keep-alive, the trace log will not be sent to skyworking ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org