Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style(exporter-collector): object spread undefined
  • Loading branch information
blumamir committed Jan 24, 2021
commit f57a5621743e90406ed81d323e1931a71a6a7897
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ export function createHttpAgent(

try {
const parsedUrl = new url.URL(config.url as string);
const httpAgentOptions = config.httpAgentOptions ?? {};
const Agent = parsedUrl.protocol === 'http:' ? http.Agent : https.Agent;
return new Agent({ keepAlive: true, ...httpAgentOptions });
return new Agent({ keepAlive: true, ...config.httpAgentOptions });
} catch (err) {
logger.error(
`collector exporter failed to create http agent. err: ${err.message}`
Expand Down