We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eca81a4 commit f57a562Copy full SHA for f57a562
packages/opentelemetry-exporter-collector/src/platform/node/util.ts
@@ -91,9 +91,8 @@ export function createHttpAgent(
91
92
try {
93
const parsedUrl = new url.URL(config.url as string);
94
- const httpAgentOptions = config.httpAgentOptions ?? {};
95
const Agent = parsedUrl.protocol === 'http:' ? http.Agent : https.Agent;
96
- return new Agent({ keepAlive: true, ...httpAgentOptions });
+ return new Agent({ keepAlive: true, ...config.httpAgentOptions });
97
} catch (err) {
98
logger.error(
99
`collector exporter failed to create http agent. err: ${err.message}`
0 commit comments