Repository navigation
Avoid shared internal code in sender-jdk and trace-propagators #9039
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,18 @@ | ||
| Comparing source compatibility of opentelemetry-sdk-common-1.69.0-SNAPSHOT.jar against opentelemetry-sdk-common-1.68.0.jar | ||
| No changes. | ||
| *** MODIFIED INTERFACE: PUBLIC ABSTRACT io.opentelemetry.sdk.common.export.GrpcSenderConfig (not serializable) | ||
| === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 | ||
| +++ NEW METHOD: PUBLIC(+) java.util.Set<io.opentelemetry.sdk.common.export.GrpcStatusCode> getRetryableGrpcStatusCodes() | ||
| *** MODIFIED INTERFACE: PUBLIC ABSTRACT io.opentelemetry.sdk.common.export.HttpSenderConfig (not serializable) | ||
| === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 | ||
| +++ NEW METHOD: PUBLIC(+) java.util.Set<java.lang.Integer> getRetryableHttpResponseCodes() | ||
| +++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.common.export.impl.HttpExportUtil (not serializable) | ||
| +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. | ||
| +++ NEW SUPERCLASS: java.lang.Object | ||
| +++ NEW METHOD: PUBLIC(+) STATIC(+) java.util.OptionalLong retryAfterNanos(java.lang.String) | ||
| +++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.common.impl.DaemonThreadFactory (not serializable) | ||
| +++ CLASS FILE FORMAT VERSION: 52.0 <- n.a. | ||
| +++ NEW INTERFACE: java.util.concurrent.ThreadFactory | ||
| +++ NEW SUPERCLASS: java.lang.Object | ||
| +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.sdk.common.impl.DaemonThreadFactory create(java.lang.String) | ||
| +++ NEW METHOD: PUBLIC(+) STATIC(+) io.opentelemetry.sdk.common.impl.DaemonThreadFactory createWithDelegate(java.lang.String, java.util.concurrent.ThreadFactory) | ||
| +++ NEW METHOD: PUBLIC(+) java.lang.Thread newThread(java.lang.Runnable) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,13 +6,16 @@ | |
| package io.opentelemetry.exporter.otlp.internal; | ||
|
|
||
| import com.google.auto.value.AutoValue; | ||
| import io.opentelemetry.exporter.internal.RetryUtil; | ||
| import io.opentelemetry.exporter.internal.grpc.ExtendedGrpcSenderConfig; | ||
| import io.opentelemetry.sdk.common.export.Compressor; | ||
| import io.opentelemetry.sdk.common.export.GrpcStatusCode; | ||
| import io.opentelemetry.sdk.common.export.RetryPolicy; | ||
| import java.net.URI; | ||
| import java.time.Duration; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
| import java.util.Set; | ||
| import java.util.concurrent.ExecutorService; | ||
| import java.util.function.Supplier; | ||
| import javax.annotation.Nullable; | ||
|
|
@@ -63,4 +66,9 @@ public static ImmutableGrpcSenderConfig create( | |
| @Override | ||
| @Nullable | ||
| public abstract List<String> getEnabledProtocols(); | ||
|
|
||
| @Override | ||
| public Set<GrpcStatusCode> getRetryableGrpcStatusCodes() { | ||
| return RetryUtil.retryableGrpcStatusCodeEnums(); | ||
|
Comment on lines
+70
to
+72
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could both |
||
| } | ||
| } | ||
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.
Could we resolve the SSL context and default trust manager as a pair once per build?
getSslContext()callsgetTrustManager()internally, then exporter construction callsgetTrustManager()again. With no explicit manager configured, these resolve separate instances rather than passing the manager used to initialize the context. This also repeats default trust-store initialization. The resolved pair should not prevent subsequent builder configuration.