Skip to content

Commit

Permalink
use native root tls certificates in tonic exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
msuret authored and davidB committed Nov 5, 2024
1 parent 39e4fc6 commit fc0d81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init-tracing-opentelemetry/src/otlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ where
#[cfg(feature = "tls")]
"grpc/tls" => opentelemetry_otlp::new_exporter()
.tonic()
.with_tls_config(ClientTlsConfig::new())
.with_tls_config(ClientTlsConfig::new().with_native_roots())
.with_endpoint(endpoint)
.into(),
_ => opentelemetry_otlp::new_exporter()
Expand Down

0 comments on commit fc0d81d

Please sign in to comment.