-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable retry by default for OTLP exporters #6588
Enable retry by default for OTLP exporters #6588
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. |
opencensus-shim/src/main/java/io/opentelemetry/opencensusshim/OpenTelemetrySpanImpl.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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}Exporter
s andOtlpGrpc{Signal}Exporter
s 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.disabled
aligns with spec naming for booleans "All Boolean environment variables SHOULD be named and defined such that false is the expected safe default behavior".