Optimize lib/instrumentation/core/http-outbound.js
to only parse the URL once
#2210
Labels
lib/instrumentation/core/http-outbound.js
to only parse the URL once
#2210
Description
There's a lot of parsing happening in
http-outbound.js
around the URL. This was noticed while updating this code in #2169. We should parse the URL once and store it in some context to be referenced later. Aside from theurl.parse
which should get updated in #2209 any references tourltils.*
should be optimized and leverage an already parsed URL.Acceptance Criteria
Only parse the outgoing URL once to do any necessary operations in the
lib/instrumentation/core/http-outbound.js
.The text was updated successfully, but these errors were encountered: