Repository navigation
Conversation
|
Pull request dashboard statusWaiting on the author · refreshed 2026-11-26 07:21 UTC Two things need attention:
Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9039 +/- ##
============================================
- Coverage 90.45% 90.45% -0.01%
+ Complexity 11179 11178 -1
============================================
Files 1032 1032
Lines 30500 30500
Branches 3991 3991
============================================
- Hits 27590 27588 -2
Misses 1935 1935
- Partials 975 977 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
abdessattar23
left a comment
There was a problem hiding this comment.
I went through the refactoring and the overall direction looks consistent with the *.impl convention and #6970.
One compatibility concern: relocating RetryUtil, TlsUtil, and DaemonThreadFactory removes their previous internal binary names. Older sender/SDK artifacts paired with newer common artifacts can therefore encounter NoClassDefFoundError. I realize internal APIs aren't covered by semver guarantees, but given the version-alignment motivation of #6970, would it make sense to retain delegating compatibility shims, or is that one-time break intentional?
Also, now that these classes are part of the stable impl API surface, a few public constructors and methods need complete Javadocs, notably DaemonThreadFactory(String), TlsUtil.keyManager, TlsUtil.trustManager, and RetryUtil.retryAfterNanos
|
@abdessattar23 Yes. It is intentional. |
|
Hi @rooks-ns — just a friendly reminder that this pull request is waiting on you. The dashboard status comment has the open items and is kept current.
|
jack-berg
left a comment
There was a problem hiding this comment.
Thanks - couple of comments, but this is long overdue. 🙂
| * <p>This class is not intended for use by application developers. Its API is stable and will not | ||
| * be changed or removed in a backwards-incompatible manner. |
There was a problem hiding this comment.
Could we resolve the default trust manager in TlsConfigHelper and pass it alongside the SSL context through HttpSenderConfig / GrpcSenderConfig, instead of making TlsUtil.defaultTrustManager() stable? Those interfaces already promise a non-null trust manager when the context is non-null. Initializing the context with that manager would satisfy the contract and avoid delegating this default to individual senders.
| */ | ||
|
|
||
| package io.opentelemetry.exporter.internal; | ||
| package io.opentelemetry.exporter.impl; |
There was a problem hiding this comment.
Could TlsUtil.keyManager and TlsUtil.trustManager stay internal? Their only production caller is TlsConfigHelper, in this module. The other callers are tests, which can use shared internal code without requiring a stable API commitment.
| * This class is not intended for use by application developers. Its API is stable and will not be | ||
| * changed or removed in a backwards-incompatible manner. |
There was a problem hiding this comment.
retryableGrpcStatusCodes() and retryableHttpResponseCodes() encode OTLP retry policy, but the senders are not restricted to OTLP. Rather than stabilizing these as generic retry utilities, could we pass retryable status codes through HttpSenderConfig / GrpcSenderConfig and have the OTLP implementations supply the OTLP-specific sets? Any new configuration methods would need compatibility-preserving defaults.
| */ | ||
|
|
||
| package io.opentelemetry.exporter.internal; | ||
| package io.opentelemetry.exporter.impl; |
There was a problem hiding this comment.
Making retryAfterNanos stable makes sense, but could it live in sdk:common, alongside the sender SPI in io.opentelemetry.sdk.common.export, under an HTTP-specific utility name? Parsing Retry-After is HTTP transport functionality, not exporter-specific policy.
| * <p>This class is not intended for use by application developers. Its API is stable and will not | ||
| * be changed or removed in a backwards-incompatible manner. |
There was a problem hiding this comment.
Moving this to impl makes sense. Before stabilizing the constructors, could we replace them with static factories, e.g. create(namePrefix) and createWithDelegate(namePrefix, delegate)? Named factories let us express the purpose of each creation variant without committing to constructor overloads.
jkwatson
left a comment
There was a problem hiding this comment.
I'm ok with the changes in the impl packages if Jack is ok with them
…opagators - Relocate DaemonThreadFactory to io.opentelemetry.sdk.common.impl with shielded private constructors and static factory methods - Add HttpExportUtil.retryAfterNanos to sdk:common and remove sender-jdk dependency on exporters:common - Pass retryable HTTP and gRPC status codes through HttpSenderConfig and GrpcSenderConfig - Resolve default trust manager in TlsConfigHelper when client certs are present, keeping TlsUtil internal - Remove sender-okhttp production dependency on exporters:common - Un-exempt sender-jdk, sender-okhttp, and trace-propagators from NoSharedInternalCodeTest
eb58500 to
6b30bd4
Compare
Description
Addresses #6970 by un-exempting sender and propagator modules from
NoSharedInternalCodeTest:*.implpackages with@OtelImplJavadocand regenerated jApiCmp baselines:RetryUtil->io.opentelemetry.exporter.impl(opentelemetry-exporter-common)DaemonThreadFactory->io.opentelemetry.sdk.common.impl(opentelemetry-sdk-common)TlsUtil->io.opentelemetry.exporter.impl(opentelemetry-exporter-common)Marshalerinternal import inGrpcRequestBody(opentelemetry-exporter-sender-okhttp).NoSharedInternalCodeTest:opentelemetry-exporter-sender-jdkopentelemetry-extension-trace-propagatorsopentelemetry-exporter-sender-okhttpRelated Issues