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(), }) }