Skip to content

Commit 861055c

Browse files
committed
fix(config): Do not panic for observability config
Signed-off-by: Danil <deniallugo@gmail.com>
1 parent 931e452 commit 861055c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/lib/protobuf_config/src/observability.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ impl ProtoRepr for proto::Observability {
3333
opentelemetry: self
3434
.opentelemetry
3535
.as_ref()
36-
.map(|cfg| cfg.read().context("opentelemetry"))
37-
.transpose()?,
36+
.map(|cfg| cfg.read().ok())
37+
.flatten(),
3838
log_directives: self.log_directives.clone(),
3939
})
4040
}

0 commit comments

Comments
 (0)