-
Notifications
You must be signed in to change notification settings - Fork 834
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
Add new TLS related APIs on OTLP exporter builders. #5280
Add new TLS related APIs on OTLP exporter builders. #5280
Conversation
...src/main/java/io/opentelemetry/exporter/otlp/http/metrics/OtlpHttpMetricExporterBuilder.java
Outdated
Show resolved
Hide resolved
Ok, I still don't love having two ways of providing a trust manager (cert bytes, or instance along with the |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #5280 +/- ##
============================================
+ Coverage 91.30% 91.32% +0.02%
- Complexity 4879 4887 +8
============================================
Files 549 549
Lines 14379 14393 +14
Branches 1354 1354
============================================
+ Hits 13129 13145 +16
+ Misses 863 861 -2
Partials 387 387
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
Couple of small comments but I'm aligned with this.
@chicobento curious if this satisfies your use case in #5211.
exporters/common/src/main/java/io/opentelemetry/exporter/internal/grpc/GrpcExporterBuilder.java
Show resolved
Hide resolved
...all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java
Outdated
Show resolved
Hide resolved
...all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java
Outdated
Show resolved
Hide resolved
...all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java
Outdated
Show resolved
Hide resolved
@@ -15,6 +15,8 @@ | |||
import io.opentelemetry.exporter.internal.otlp.traces.TraceRequestMarshaler; | |||
import java.time.Duration; | |||
import java.util.concurrent.TimeUnit; | |||
import javax.net.ssl.SSLSocketFactory; | |||
import javax.net.ssl.X509TrustManager; | |||
|
|||
/** |
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.
Would like to see same changes applied to jaeger-related classes such as JaegerRemoteSamplerBuilder and JaegerGrpcSpanExporterBuilder.
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.
Let's do that in a separate PR.
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Now that #5362 is merged, we should be able to rebase this and expose the new |
…nces and blend trust manager into setSslFactory calls.
…nces and blend trust manager into setSslFactory calls.
2fc286c
to
0a8c873
Compare
@jkwatson can you take a look? Would be good to get this in for the May release. |
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.
Thanks!
Relates to #5211.
This is a follow-up from #5246 and provides new methods for configuring TLS on the OTLP exporters in a more DIY or BYO fashion. This allows users to preconfigure their own existing
X509TrustManager
,X509KeyManager
, and/orSSLSocketFactory
without necessarily having to manually deal with certificate bytes (existing APIs).