You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-08-10 22:31:50 +02:00
Clarify comments for the WithRetry
option in exporters (#6670)
It's been a while since I last looked at the comment about retries. After re-reading it, I initially assumed the gRPC retry logic was handled by the gRPC library itself, but it's actually implemented in our code. Update the comment to make it clearer.
This commit is contained in:
@@ -360,8 +360,9 @@ func WithTimeout(duration time.Duration) Option {
|
|||||||
// explicitly returns a backoff time in the response, that time will take
|
// explicitly returns a backoff time in the response, that time will take
|
||||||
// precedence over these settings.
|
// precedence over these settings.
|
||||||
//
|
//
|
||||||
// These settings do not define any network retry strategy. That is entirely
|
// These settings define the retry strategy implemented by the exporter.
|
||||||
// handled by the gRPC ClientConn.
|
// These settings do not define any network retry strategy.
|
||||||
|
// That is handled by the gRPC ClientConn.
|
||||||
//
|
//
|
||||||
// If unset, the default retry policy will be used. It will retry the export
|
// If unset, the default retry policy will be used. It will retry the export
|
||||||
// 5 seconds after receiving a retryable error and increase exponentially
|
// 5 seconds after receiving a retryable error and increase exponentially
|
||||||
|
@@ -238,8 +238,9 @@ func WithTimeout(duration time.Duration) Option {
|
|||||||
// explicitly returns a backoff time in the response, that time will take
|
// explicitly returns a backoff time in the response, that time will take
|
||||||
// precedence over these settings.
|
// precedence over these settings.
|
||||||
//
|
//
|
||||||
// These settings do not define any network retry strategy. That is entirely
|
// These settings define the retry strategy implemented by the exporter.
|
||||||
// handled by the gRPC ClientConn.
|
// These settings do not define any network retry strategy.
|
||||||
|
// That is handled by the gRPC ClientConn.
|
||||||
//
|
//
|
||||||
// If unset, the default retry policy will be used. It will retry the export
|
// If unset, the default retry policy will be used. It will retry the export
|
||||||
// 5 seconds after receiving a retryable error and increase exponentially
|
// 5 seconds after receiving a retryable error and increase exponentially
|
||||||
|
@@ -199,8 +199,9 @@ func WithTimeout(duration time.Duration) Option {
|
|||||||
// explicitly returns a backoff time in the response. That time will take
|
// explicitly returns a backoff time in the response. That time will take
|
||||||
// precedence over these settings.
|
// precedence over these settings.
|
||||||
//
|
//
|
||||||
// These settings do not define any network retry strategy. That is entirely
|
// These settings define the retry strategy implemented by the exporter.
|
||||||
// handled by the gRPC ClientConn.
|
// These settings do not define any network retry strategy.
|
||||||
|
// That is handled by the gRPC ClientConn.
|
||||||
//
|
//
|
||||||
// If unset, the default retry policy will be used. It will retry the export
|
// If unset, the default retry policy will be used. It will retry the export
|
||||||
// 5 seconds after receiving a retryable error and increase exponentially
|
// 5 seconds after receiving a retryable error and increase exponentially
|
||||||
|
Reference in New Issue
Block a user