feat(http,http2): add http context info#1463
Conversation
watson
left a comment
There was a problem hiding this comment.
Just adding a drive-by review - I swear I can stop any time if I want 😅
Not sure if my review comment below is valid - could just be me not understanding the http-request-to-url module. Besides that it looks good - just remember to update the TypeScript typings and the docs 👍
| agent.logger.debug('intercepted http.IncomingMessage end event %o', { id: id }) | ||
| span.end() | ||
|
|
||
| httpRequestToUrl(req).then(url => { |
There was a problem hiding this comment.
Isn't there a risk that this promise will never resolve in case req.socket is never populated for some reason?
There was a problem hiding this comment.
Yep, there was also some test issues due to the timing, so I changed it. The url is fetched out-of-band now, so it'd just be undefined if the socket is never populated.
9047e85 to
0fd4548
Compare
|
I wasn't intending on |
Fixes #1462
Checklist