open-telemetry / opentelemetry-cpp-contrib

https://opentelemetry.io/
Apache License 2.0
125 stars 140 forks source link

fluentd exporter: Disconnect and retry DNS lookup on socket failure #469

Open justin-mccann opened 4 months ago

justin-mccann commented 4 months ago

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.