Open coderfromhere opened 3 years ago
Agreed - the current behavior is not great. The background thread should fail the whole process on error (relevant read) or continue publishing.
In the meantime here are a couple suggestions to work around this:
publish
manually with adequate error handling.The background thread should fail the whole process on error (relevant read) or continue publishing.
Right, the only viable option in case of backend daemons is to carry on with (or without) delayed retrying to send the same payload again, as failing the entire process is hardly desirable. How about performing another forkIO
with a retrying-only closure upon receiving a network exception? The number of retries could then be configured similarly to settingsPublishPeriod
.
If a trace collector is temporarily down, a background thread that tries to reach it is expected to survive
flushSpans
throwingConnectionFailure
: