honeycombio / libhoney-rb

Ruby library for sending data to Honeycomb
Apache License 2.0
11 stars 30 forks source link

Retry once on send timeout #119

Closed JamieDanielson closed 2 years ago

JamieDanielson commented 2 years ago

Is your feature request related to a problem? Please describe.

Our ALB currently has a timeout of 60s, so idle connections from libhoney that time out around the 60s mark may be dropped.

Describe the solution you'd like

Retry once if there is an http timeout, similar to what is done in libhoney-go.

Describe alternatives you've considered

Considering increasing the ALB timeout to 65s to avoid common 60s intervals, but libhoney transmission should retry once regardless because this issue could technically occur at any timeout interval.

Additional context

Pollinators thread in sdk-ruby