opentelemetry-cpp-contrib icon indicating copy to clipboard operation
opentelemetry-cpp-contrib copied to clipboard

fluentd exporter: Disconnect and retry DNS lookup on socket failure

Open justin-mccann opened this issue 1 year ago • 2 comments

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.

justin-mccann avatar Jul 17 '24 23:07 justin-mccann

any test cases in your PR? It would be better that your changed could be covered by unit test.

zurex avatar Mar 17 '25 06:03 zurex

@lalitb any comment on this?

ThomsonTan avatar Mar 25 '25 03:03 ThomsonTan