File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ class OTLPExporterMixin(
185
185
timeout: Backend request timeout in seconds
186
186
compression: gRPC compression method to use
187
187
"""
188
+ _MAX_RETRY_TIMEOUT = 64
188
189
189
190
def __init__ (
190
191
self ,
@@ -286,12 +287,11 @@ def _export(
286
287
# data.__class__.__name__,
287
288
# delay,
288
289
# )
289
- max_value = 64
290
290
# expo returns a generator that yields delay values which grow
291
291
# exponentially. Once delay is greater than max_value, the yielded
292
292
# value will remain constant.
293
- for delay in _create_exp_backoff_generator (max_value = max_value ):
294
- if delay == max_value or self ._shutdown :
293
+ for delay in _create_exp_backoff_generator (max_value = self . _MAX_RETRY_TIMEOUT ):
294
+ if delay == self . _MAX_RETRY_TIMEOUT or self ._shutdown :
295
295
return self ._result .FAILURE
296
296
297
297
with self ._export_lock :
You can’t perform that action at this time.
0 commit comments