Skip to content

OTel Java Agent - mTLS Support Concern #13134

Answered by laurit
colmwilty asked this question in Q&A
Discussion options

You must be logged in to vote

I believe there is a way to provide an SSLContext object, which can be initialized based on a keystore and truststore, when using the OTel SDK. However, there doesn't appear to be a way to hook into the Java agent's auto-config and set the SSLContext on the exporter's HTTP client.

Otel java agent provides an extension mechanism https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/extension that lets you customize the otel sdk used by the agent. Using an extension you should be able to configure your own exporter that uses SSLContext. Internally otel agent uses autoconfigure extension from opentelemetry-java project https://github.com/open-telemetry/ope…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@colmwilty
Comment options

Answer selected by colmwilty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants