buildkite / buildkite-agent-metrics

A command-line tool (and Lambda) for collecting Buildkite agent metrics
MIT License
67 stars 50 forks source link

This change will ensure a single HTTP client is created #285

Closed wolfeidau closed 3 months ago

wolfeidau commented 3 months ago

To ensure we get consistent connection reuse, pooling I have extracted the HTTP Client used by all collections. This client has been configured with a set of timeouts at both the client and transport level.

I have used the following post as a reference https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts