:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(logs): install a rustls crypto provider in the rust logs consumer (#130217)
Frank Hamande8f56fb4a7a5
diff --git a/rust/Cargo.lock b/rust/Cargo.lockindex 5d62f893d10e..9c85c2c77a09 100644--- a/rust/Cargo.lock+++ b/rust/Cargo.lock@@ -7763,6 +7763,7 @@ dependencies = ["regex","regex-automata","reqwest 0.12.28",+ "rustls 0.23.37","serde","serde_json","serve-metrics",diff --git a/rust/logs-ingestion/Cargo.toml b/rust/logs-ingestion/Cargo.tomlindex b5c1ee606c96..bd7997ddcbec 100644--- a/rust/logs-ingestion/Cargo.toml+++ b/rust/logs-ingestion/Cargo.toml@@ -31,6 +31,7 @@ redis = { workspace = true }regex = { workspace = true }regex-automata = "0.4"reqwest = { workspace = true }+rustls = { workspace = true }serde = { workspace = true }serve-metrics = { path = "../common/serve_metrics" }serde_json = { workspace = true }diff --git a/rust/logs-ingestion/src/bin/logs-ingestion.rs b/rust/logs-ingestion/src/bin/logs-ingestion.rsindex 2613ac7f0801..413a024a2b0c 100644--- a/rust/logs-ingestion/src/bin/logs-ingestion.rs+++ b/rust/logs-ingestion/src/bin/logs-ingestion.rs@@ -5,6 +5,10 @@ common_alloc::used!();#[tokio::main]async fn main() -> anyhow::Result<()> {+ // Both aws-lc-rs and ring are in the dependency graph, so rustls cannot pick a provider and panics on the first TLS connection.+ rustls::crypto::aws_lc_rs::default_provider()+ .install_default()+ .expect("failed to install the rustls CryptoProvider");tracing_subscriber::fmt().json().with_env_filter(