Skip to content
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

feat: configure TLS with environment variables. #2465

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jvanz
Copy link

@jvanz jvanz commented Dec 23, 2024

Updates the opentelemetry-otlp crate to allow users to configure TLS using environment variables. Removing the need to crating the TLS config object and defining it with the with_tls_config method. In the same way other OTLP libraries does (e.g. go lang).

Partially fixes #774

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@jvanz jvanz force-pushed the tls-envvars branch 3 times, most recently from 50894e9 to 5031002 Compare December 24, 2024 16:12
Copy link

codecov bot commented Dec 24, 2024

Codecov Report

Attention: Patch coverage is 2.79720% with 139 lines in your changes missing coverage. Please review.

Project coverage is 76.8%. Comparing base (6e1032f) to head (887a6a6).

Files with missing lines Patch % Lines
opentelemetry-otlp/src/exporter/tonic/mod.rs 0.0% 122 Missing ⚠️
opentelemetry-otlp/src/exporter/mod.rs 19.0% 17 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #2465     +/-   ##
=======================================
- Coverage   77.1%   76.8%   -0.4%     
=======================================
  Files        124     124             
  Lines      23021   23124    +103     
=======================================
+ Hits       17771   17775      +4     
- Misses      5250    5349     +99     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Updates the opentelemetry-otlp crate to allow users to configure TLS
using environment variables. Removing the need to crating the TLS config
object and defining it with the `with_tls_config` method. In the same
way other OTLP libraries does (e.g. go lang).

Signed-off-by: José Guilherme Vanz <[email protected]>
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.

Support all configuration of otlp exporter
1 participant