Skip to content

Conversation

@tobert
Copy link
Contributor

@tobert tobert commented Sep 25, 2023

In my previous PR, I changed otlpclient.retry() to add a deadline when one is missing. This would have been fine if it used the old config.StartupTime but that's gone so I used time.Now(). The problem is, it'll get a new time in the future for every call to retry and never stop.

Clearly this needs more testing but for now let's fix it what wasn't broken before.

In my previous PR, I changed otlpclient.retry() to add a deadline when
one is missing. This would have been fine if it used the old
config.StartupTime but that's gone so I used time.Now(). The problem is,
it'll get a new time in the future for every call to retry and never
stop.

Clearly this needs more testing but for now let's fix it what wasn't
broken before.
@tobert tobert merged commit ccda334 into main Sep 25, 2023
@tobert tobert deleted the fix-retry-timeout branch September 25, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants