opentelemetry-cpp-contrib
opentelemetry-cpp-contrib copied to clipboard
fluentd exporter: Disconnect and retry DNS lookup on socket failure
On socket failure, re-initialize the address info.
Along with #468, this triggers a new DNS lookup.
To prevent immediate retries that quickly exhaust the retry count, add a retry_delay_ms to FluentdExporterOptions, defaulting to 1000ms.
We found this useful when deploying in a Kubernetes environment, where the targeted service endpoint may not yet be up when a logging client starts up.
any test cases in your PR? It would be better that your changed could be covered by unit test.
@lalitb any comment on this?