Skip to content

Conversation

ryandens
Copy link
Member

@ryandens ryandens commented Oct 7, 2021

Description

Adds support for the cert_file configuration, configuring the underlying OTLP exporter with the cert file path.

Testing

Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.

if (agentConfig.getReporting().getTraceReporterType() == TraceReporterType.OTLP) {
configProperties.put(OTEL_OTLP_CERT, agentConfig.getReporting().getCertFile().getValue());
} else {
log.warn(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not easy to support for zipkin as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly not, their implementation is of this is solely implemented on their OTLP-based exporters. If we need a workaround, there are java command-line options we could put together for a user to configure their JVM to trust a specific certificate.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok.

@ryandens ryandens merged commit 0070c2c into main Oct 8, 2021
@ryandens ryandens deleted the eng-11556 branch October 8, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants