-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: shimming of
http.request()
with node v18.17.0 caused a subtle …
…edge case breakage (#3511) Before this change, a call with a non-Function callback: http.request(urlString, {}, 'this-is-not-a-cb-function') would accidentally *not* fail because of the agent's instrumentation. This is because the Node.js internal `isURL()` check changed such that the result of `urlToHttpOptions(url)` passes `isURL()`.
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,10 @@ Notes: | |
[float] | ||
===== Bug fixes | ||
* Fix wrapping of `http.request()` for node v18.17.0. Before this change, a | ||
call with a non-Function callback -- `http.request(urlString, {}, 'this-is-not-a-cb-function')` | ||
-- would accidentally *not* fail because of the agent's instrumentation. | ||
* Fix tedious instrumentation to recognize "connection.prepare()" usage in | ||
[email protected] and later. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters