Skip to content

Commit 7dad226

Browse files
authored
fix: stop tracing HTTPS traffic to the agent (#7545)
request.js destructures { httpsAgent } from ./agents but agents.js exported HttpsAgent (PascalCase), so httpsAgent was undefined. Only affects configs using HTTPS to reach the agent. With the fix, those requests use the custom agent and are no longer traced.
1 parent d5c7efd commit 7dad226

File tree

1 file changed

+1
-1
lines changed
  • packages/dd-trace/src/exporters/common

1 file changed

+1
-1
lines changed

packages/dd-trace/src/exporters/common/agents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ const HttpsAgent = createAgentClass(https.Agent)
3838

3939
module.exports = {
4040
httpAgent: new HttpAgent(),
41-
HttpsAgent: new HttpsAgent(),
41+
httpsAgent: new HttpsAgent(),
4242
}

0 commit comments

Comments
 (0)