From 3a1c9f72e767bbb5ebb8d77b3e4a8ab9850a9a9c Mon Sep 17 00:00:00 2001 From: Danil Date: Mon, 12 Aug 2024 15:23:17 +0200 Subject: [PATCH] fix(config): Do not panic for observability config Signed-off-by: Danil --- core/lib/protobuf_config/src/observability.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/lib/protobuf_config/src/observability.rs b/core/lib/protobuf_config/src/observability.rs index dcf87771b587..9a6c31f9223c 100644 --- a/core/lib/protobuf_config/src/observability.rs +++ b/core/lib/protobuf_config/src/observability.rs @@ -30,11 +30,7 @@ impl ProtoRepr for proto::Observability { sentry_url, sentry_environment, log_format: required(&self.log_format).context("log_format")?.clone(), - opentelemetry: self - .opentelemetry - .as_ref() - .map(|cfg| cfg.read().context("opentelemetry")) - .transpose()?, + opentelemetry: self.opentelemetry.as_ref().and_then(|cfg| cfg.read().ok()), log_directives: self.log_directives.clone(), }) }