Enable retry by default for OTLP exporters#6588
Enable retry by default for OTLP exporters#6588jack-berg merged 3 commits intoopen-telemetry:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6588 +/- ##
============================================
- Coverage 90.62% 90.58% -0.05%
+ Complexity 6261 6260 -1
============================================
Files 689 689
Lines 18704 18704
Branches 1844 1847 +3
============================================
- Hits 16951 16943 -8
- Misses 1198 1200 +2
- Partials 555 561 +6 ☔ View full report in Codecov by Sentry. |
jkwatson
left a comment
There was a problem hiding this comment.
I approve of making this the default
|
I'm wondering about the relationship between It seems good for the total exporter time across retries to be less than I think currently though the Java implementation applies |
The timeout applies to the collective set of all requests (original + any retries). For okhttp, we set
For jdk, we set the So we're safe on your point about exporter timeout needing to be shorter than bsp timeout. |
Resolves #5641.
OtlpHttp{Signal}Exporters andOtlpGrpc{Signal}Exporters to enable retry by default.otel.java.exporter.otlp.retry.disabled(defaults to false) property to superseedotel.experimental.java.exporter.otlp.retry.enabled(defaults to true). The old property will be retained for some time for backwards compatibility.Context:
otel.experimental.java.exporter.otlp.retry.enabled. We can't remove this property because users rely on it, so we might as well embrace it and introduce a stable java-specific property. The new nameotel.java.exporter.otlp.retry.disabledaligns with spec naming for booleans "All Boolean environment variables SHOULD be named and defined such that false is the expected safe default behavior".