Skip to content

feat(otlp): add reqwest-native-tls feature flag for HTTP transport#3330

Open
r0x0d wants to merge 2 commits intoopen-telemetry:mainfrom
r0x0d:add-native-tls-feature-flag
Open

feat(otlp): add reqwest-native-tls feature flag for HTTP transport#3330
r0x0d wants to merge 2 commits intoopen-telemetry:mainfrom
r0x0d:add-native-tls-feature-flag

Conversation

@r0x0d
Copy link

@r0x0d r0x0d commented Jan 27, 2026

Changes

Add optional reqwest-native-tls feature flag to opentelemetry-http and opentelemetry-otlp crates, enabling the use of system native TLS instead of bundled rustls.

This is particularly beneficial for Linux distribution packagers who need to link against system libraries (OpenSSL) rather than bundling TLS implementations. Using system TLS allows:

  • Leveraging system-managed security updates for TLS/OpenSSL
  • Reducing binary size by avoiding bundled crypto libraries
  • Ensuring consistency with system certificate stores
  • Complying with distribution packaging policies that prefer system libs

On other platforms, this uses Schannel (Windows) and Secure Transport (macOS).

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)

@r0x0d r0x0d requested a review from a team as a code owner January 27, 2026 14:12
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 27, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.7%. Comparing base (69c62b1) to head (0784c07).

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #3330     +/-   ##
=======================================
- Coverage   82.7%   82.7%   -0.1%     
=======================================
  Files        128     128             
  Lines      24811   24811             
=======================================
- Hits       20526   20522      -4     
- Misses      4285    4289      +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add optional `reqwest-native-tls` feature flag to opentelemetry-http and
opentelemetry-otlp crates, enabling the use of system native TLS instead
of bundled rustls.

This is particularly beneficial for Linux distribution packagers who need
to link against system libraries (OpenSSL) rather than bundling TLS
implementations. Using system TLS allows:

- Leveraging system-managed security updates for TLS/OpenSSL
- Reducing binary size by avoiding bundled crypto libraries
- Ensuring consistency with system certificate stores
- Complying with distribution packaging policies that prefer system libs

On other platforms, this uses Schannel (Windows) and Secure Transport
(macOS).

Usage:
  cargo build --no-default-features --features "http-proto,reqwest-native-tls,trace,metrics,logs"
@r0x0d r0x0d force-pushed the add-native-tls-feature-flag branch from dfe826a to c792c68 Compare March 3, 2026 17:47
@r0x0d r0x0d force-pushed the add-native-tls-feature-flag branch from c792c68 to 0784c07 Compare March 3, 2026 17:47
@r0x0d r0x0d requested a review from lalitb March 3, 2026 17:47
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