From 06ed38c385d83d392a03ded79003cdf1eb072d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20M=C3=A4rkle?= Date: Wed, 18 Dec 2024 14:23:58 +0100 Subject: [PATCH] CARL+EDGAR -> Initialize TLS CryptoProvider earlier to allow usage in OpenTelemetry. --- opendut-carl/src/lib.rs | 2 ++ opendut-edgar/src/main.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/opendut-carl/src/lib.rs b/opendut-carl/src/lib.rs index 83c02fb1..03ff1831 100644 --- a/opendut-carl/src/lib.rs +++ b/opendut-carl/src/lib.rs @@ -41,6 +41,8 @@ mod auth; #[tracing::instrument] pub async fn create_with_telemetry(settings_override: config::Config) -> anyhow::Result<()> { + opendut_util::crypto::install_default_provider(); + let settings = settings::load_with_overrides(settings_override)?; let service_instance_id = format!("carl-{}", Uuid::new_v4()); diff --git a/opendut-edgar/src/main.rs b/opendut-edgar/src/main.rs index 93633aa7..5cc45ab0 100644 --- a/opendut-edgar/src/main.rs +++ b/opendut-edgar/src/main.rs @@ -1,4 +1,6 @@ #[tokio::main] async fn main() -> anyhow::Result<()> { + opendut_util::crypto::install_default_provider(); + opendut_edgar::cli().await }